You are here

public function SelectionInterface::validateReferenceableEntities in Drupal 9

Same name and namespace in other branches
  1. 8 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\EntityReferenceSelection

Code

public function validateReferenceableEntities(array $ids);