You are here

public function SelectionInterface::validateReferenceableEntities in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionInterface.php \Drupal\Core\Entity\EntityReferenceSelection\SelectionInterface::validateReferenceableEntities()
  2. 9 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.

File

core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionInterface.php, line 59

Class

SelectionInterface
Interface definition for Entity Reference Selection plugins.

Namespace

Drupal\Core\Entity\EntityReferenceSelection

Code

public function validateReferenceableEntities(array $ids);