Returns a list of referencable entities.
Return value
array
An array of referencable entities. Keys are entity IDs and
values are (safe HTML) labels to be displayed to the user.
File
- drupal/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/Type/Selection/SelectionInterface.php, line 29
- Contains \Drupal\entity_reference\Plugin\Type\Selection\SelectionInterface.
Class
- SelectionInterface
- Interface definition for Entity Reference selection plugins.
Namespace
Drupal\entity_reference\Plugin\Type\Selection
Code
public function getReferencableEntities($match = NULL, $match_operator = 'CONTAINS', $limit = 0);