function SelectionInterface::validateReferenceableEntities
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionInterface.php \Drupal\Core\Entity\EntityReferenceSelection\SelectionInterface::validateReferenceableEntities()
- 10 core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionInterface.php \Drupal\Core\Entity\EntityReferenceSelection\SelectionInterface::validateReferenceableEntities()
- 11.x core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionInterface.php \Drupal\Core\Entity\EntityReferenceSelection\SelectionInterface::validateReferenceableEntities()
Validates which existing entities can be referenced.
Parameters
array $ids: An array of IDs to validate.
Return value
array An array of valid entity IDs.
3 methods override SelectionInterface::validateReferenceableEntities()
- Broken::validateReferenceableEntities in core/
lib/ Drupal/ Core/ Entity/ Plugin/ EntityReferenceSelection/ Broken.php - Validates which existing entities can be referenced.
- DefaultSelection::validateReferenceableEntities in core/
lib/ Drupal/ Core/ Entity/ Plugin/ EntityReferenceSelection/ DefaultSelection.php - Validates which existing entities can be referenced.
- ViewsSelection::validateReferenceableEntities in core/
modules/ views/ src/ Plugin/ EntityReferenceSelection/ ViewsSelection.php - Validates which existing entities can be referenced.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityReferenceSelection/ SelectionInterface.php, line 59
Class
- SelectionInterface
- Interface definition for Entity Reference Selection plugins.
Namespace
Drupal\Core\Entity\EntityReferenceSelectionCode
public function validateReferenceableEntities(array $ids);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.