You are here

public function SelectionInterface::getReferencableEntities in Entity reference 8

Return a list of referencable entities.

Return value

An array of referencable entities, which keys are entity ids and values (safe HTML) labels to be displayed to the user.

2 methods override SelectionInterface::getReferencableEntities()
SelectionBase::getReferencableEntities in lib/Drupal/entityreference/Plugin/entityreference/selection/SelectionBase.php
Implements EntityReferenceHandler::getReferencableEntities().
SelectionBroken::getReferencableEntities in lib/Drupal/entityreference/Plugin/Type/Selection/SelectionBroken.php
Return a list of referencable entities.

File

lib/Drupal/entityreference/Plugin/Type/Selection/SelectionInterface.php, line 25
Definition of Drupal\entityreference\Plugin\Type\Selection\SelectionInterface.

Class

SelectionInterface
Interface definition for entityre-ference selection plugins.

Namespace

Drupal\entityreference\Plugin\Type\Selection

Code

public function getReferencableEntities($match = NULL, $match_operator = 'CONTAINS', $limit = 0);