function SelectionInterface::getReferenceableEntities
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionInterface.php \Drupal\Core\Entity\EntityReferenceSelection\SelectionInterface::getReferenceableEntities()
- 10 core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionInterface.php \Drupal\Core\Entity\EntityReferenceSelection\SelectionInterface::getReferenceableEntities()
- 11.x core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionInterface.php \Drupal\Core\Entity\EntityReferenceSelection\SelectionInterface::getReferenceableEntities()
Gets the list of referenceable entities.
Return value
array A nested array of entities, the first level is keyed by the entity bundle, which contains an array of entity labels (escaped), keyed by the entity ID.
4 methods override SelectionInterface::getReferenceableEntities()
- Broken::getReferenceableEntities in core/
lib/ Drupal/ Core/ Entity/ Plugin/ EntityReferenceSelection/ Broken.php - Gets the list of referenceable entities.
- DefaultSelection::getReferenceableEntities in core/
lib/ Drupal/ Core/ Entity/ Plugin/ EntityReferenceSelection/ DefaultSelection.php - Gets the list of referenceable entities.
- TestSelection::getReferenceableEntities in core/
tests/ Drupal/ Tests/ Core/ EntityReferenceSelection/ EntityReferenceSelectionUnitTest.php - Gets the list of referenceable entities.
- ViewsSelection::getReferenceableEntities in core/
modules/ views/ src/ Plugin/ EntityReferenceSelection/ ViewsSelection.php - Gets the list of referenceable entities.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityReferenceSelection/ SelectionInterface.php, line 25
Class
- SelectionInterface
- Interface definition for Entity Reference Selection plugins.
Namespace
Drupal\Core\Entity\EntityReferenceSelectionCode
public function getReferenceableEntities($match = NULL, $match_operator = 'CONTAINS', $limit = 0);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.