You are here

function entityreference_options_list in Entity reference 8

Same name and namespace in other branches
  1. 7 entityreference.module \entityreference_options_list()

Implements hook_options_list().

File

./entityreference.module, line 339
Provides a field that can reference other entities.

Code

function entityreference_options_list($field, $instance = NULL, $entity_type = NULL, $entity = NULL) {
  return entityreference_get_selection_handler($field, $instance, $entity_type, $entity)
    ->getReferencableEntities();
}