W3cubDocs

/Drupal 8

public function SelectionInterface::validateReferenceableEntities

public SelectionInterface::validateReferenceableEntities(array $ids)

Validates which existing entities can be referenced.

Return value

array An array of valid entity IDs.

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);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityReferenceSelection!SelectionInterface.php/function/SelectionInterface::validateReferenceableEntities/8.1.x