1 EntityReferenceSelectionHandler.inc public static EntityReferenceSelectionHandlerInterface::getInstance($field, $instance = NULL, $entity_type = NULL, $entity = NULL)

Factory function: create a new instance of this handler for a given field.

Parameters

$field: A field data structure.

Return value

EntityReferenceHandler:

File

core/modules/entityreference/plugins/selection/EntityReferenceSelectionHandler.inc, line 18
Abstraction of the selection logic of an entity reference field.

Class

EntityReferenceSelectionHandlerInterface
@file Abstraction of the selection logic of an entity reference field.

Code

public static function getInstance($field, $instance = NULL, $entity_type = NULL, $entity = NULL);