public function Broken::validateReferenceableEntities in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/Broken.php \Drupal\Core\Entity\Plugin\EntityReferenceSelection\Broken::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.
Overrides SelectionInterface::validateReferenceableEntities
File
- core/
lib/ Drupal/ Core/ Entity/ Plugin/ EntityReferenceSelection/ Broken.php, line 46
Class
- Broken
- Defines a fallback plugin for missing entity_reference selection plugins.
Namespace
Drupal\Core\Entity\Plugin\EntityReferenceSelectionCode
public function validateReferenceableEntities(array $ids) {
return [];
}