interface SelectionPluginManagerInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginManagerInterface.php \Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManagerInterface
Defines an interface for the entity reference selection plugin manager.
Hierarchy
- interface \Drupal\Component\Plugin\Discovery\DiscoveryInterface; interface \Drupal\Component\Plugin\Factory\FactoryInterface; interface \Drupal\Component\Plugin\Mapper\MapperInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface
- interface \Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManagerInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface
Expanded class hierarchy of SelectionPluginManagerInterface
All classes that implement SelectionPluginManagerInterface
2 files declare their use of SelectionPluginManagerInterface
- EntityAutocompleteMatcher.php in core/
lib/ Drupal/ Core/ Entity/ EntityAutocompleteMatcher.php - Contains \Drupal\Core\Entity\EntityAutocompleteMatcher.
- ValidReferenceConstraintValidator.php in core/
lib/ Drupal/ Core/ Entity/ Plugin/ Validation/ Constraint/ ValidReferenceConstraintValidator.php - Contains \Drupal\Core\Entity\Plugin\Validation\Constraint\ValidReferenceConstraintValidator.
File
- core/
lib/ Drupal/ Core/ Entity/ EntityReferenceSelection/ SelectionPluginManagerInterface.php, line 17 - Contains \Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManagerInterface.
Namespace
Drupal\Core\Entity\EntityReferenceSelectionView source
interface SelectionPluginManagerInterface extends PluginManagerInterface {
/**
* Gets the plugin ID for a given target entity type and base plugin ID.
*
* @param string $target_type
* The target entity type.
* @param string $base_plugin_id
* The base plugin ID (e.g. 'default' or 'views').
*
* @return string
* The plugin ID.
*/
public function getPluginId($target_type, $base_plugin_id);
/**
* Gets the selection plugins that can reference a specific entity type.
*
* @param string $entity_type_id
* A Drupal entity type ID.
*
* @return array
* An array of selection plugins grouped by selection group.
*/
public function getSelectionGroups($entity_type_id);
/**
* Gets the selection handler for a given entity_reference field.
*
* @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
* The field definition for the operation.
* @param \Drupal\Core\Entity\EntityInterface $entity
* (optional) The entity for the operation. Defaults to NULL.
*
* @return \Drupal\Core\Entity\EntityReferenceSelection\SelectionInterface
* The selection plugin.
*/
public function getSelectionHandler(FieldDefinitionInterface $field_definition, EntityInterface $entity = NULL);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DiscoveryInterface:: |
public | function | Gets a specific plugin definition. | 3 |
DiscoveryInterface:: |
public | function | Gets the definition of all plugins for this type. | 2 |
DiscoveryInterface:: |
public | function | Indicates if a specific plugin definition exists. | 2 |
FactoryInterface:: |
public | function | Creates a pre-configured instance of a plugin. | 5 |
MapperInterface:: |
public | function | Gets a preconfigured instance of a plugin. | 4 |
SelectionPluginManagerInterface:: |
public | function | Gets the plugin ID for a given target entity type and base plugin ID. | 1 |
SelectionPluginManagerInterface:: |
public | function | Gets the selection plugins that can reference a specific entity type. | 1 |
SelectionPluginManagerInterface:: |
public | function | Gets the selection handler for a given entity_reference field. | 1 |