SelectionPluginManagerInterface
interface SelectionPluginManagerInterface implements PluginManagerInterface (View source)
Defines an interface for the entity reference selection plugin manager.
Methods
Gets a specific plugin definition.
Indicates if a specific plugin definition exists.
Creates a pre-configured instance of a plugin.
Gets a preconfigured instance of a plugin.
Gets the plugin ID for a given target entity type and base plugin ID.
Gets the selection plugins that can reference a specific entity type.
Gets the selection handler for a given entity_reference field.
Details
mixed
getDefinition(string $plugin_id, bool $exception_on_invalid = TRUE)
Gets a specific plugin definition.
array
getDefinitions()
Gets the definition of all plugins for this type.
bool
hasDefinition(string $plugin_id)
Indicates if a specific plugin definition exists.
object
createInstance(string $plugin_id, array $configuration = [])
Creates a pre-configured instance of a plugin.
object|false
getInstance(array $options)
Gets a preconfigured instance of a plugin.
string
getPluginId(string $target_type, string $base_plugin_id)
Gets the plugin ID for a given target entity type and base plugin ID.
array
getSelectionGroups(string $entity_type_id)
Gets the selection plugins that can reference a specific entity type.
SelectionInterface
getSelectionHandler(FieldDefinitionInterface $field_definition, EntityInterface $entity = NULL)
Gets the selection handler for a given entity_reference field.