function SelectionPluginManagerInterface::getSelectionHandler
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginManagerInterface.php \Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManagerInterface::getSelectionHandler()
- 8.9.x core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginManagerInterface.php \Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManagerInterface::getSelectionHandler()
- 11.x core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginManagerInterface.php \Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManagerInterface::getSelectionHandler()
Gets the selection handler for a given entity_reference field.
Parameters
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition for the operation.
\Drupal\Core\Entity\EntityInterface $entity: (optional) The entity for the operation. Defaults to NULL.
Return value
\Drupal\Core\Entity\EntityReferenceSelection\SelectionInterface The selection plugin.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityReferenceSelection/ SelectionPluginManagerInterface.php, line 49
Class
- SelectionPluginManagerInterface
- Defines an interface for the entity reference selection plugin manager.
Namespace
Drupal\Core\Entity\EntityReferenceSelectionCode
public function getSelectionHandler(FieldDefinitionInterface $field_definition, ?EntityInterface $entity = NULL);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.