public function SelectionInterface::validateReferencableEntities in Entity reference 8
Validate that entities can be referenced by this field.
Return value
An array of entity ids that are valid.
2 methods override SelectionInterface::validateReferencableEntities()
- SelectionBase::validateReferencableEntities in lib/
Drupal/ entityreference/ Plugin/ entityreference/ selection/ SelectionBase.php - Implements EntityReferenceHandler::validateReferencableEntities().
- SelectionBroken::validateReferencableEntities in lib/
Drupal/ entityreference/ Plugin/ Type/ Selection/ SelectionBroken.php - Validate that entities can be referenced by this field.
File
- lib/
Drupal/ entityreference/ Plugin/ Type/ Selection/ SelectionInterface.php, line 38 - Definition of Drupal\entityreference\Plugin\Type\Selection\SelectionInterface.
Class
- SelectionInterface
- Interface definition for entityre-ference selection plugins.
Namespace
Drupal\entityreference\Plugin\Type\SelectionCode
public function validateReferencableEntities(array $ids);