You are here

public function SelectionInterface::validateReferenceableEntities in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionInterface.php \Drupal\Core\Entity\EntityReferenceSelection\SelectionInterface::validateReferenceableEntities()

Validates which existing entities can be referenced.

Return value

array An array of valid entity IDs.

4 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.
TestSelection::validateReferenceableEntities in core/tests/Drupal/Tests/Core/EntityReferenceSelection/EntityReferenceSelectionUnitTest.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 41

Class

SelectionInterface
Interface definition for Entity Reference Selection plugins.

Namespace

Drupal\Core\Entity\EntityReferenceSelection

Code

public function validateReferenceableEntities(array $ids);