1 EntityReferenceSelectionHandler.inc public static EntityReferenceSelectionHandlerBroken::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:

Overrides EntityReferenceSelectionHandlerInterface::getInstance

File

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

Class

EntityReferenceSelectionHandlerBroken
A null implementation of EntityReferenceSelectionHandler.

Code

public static function getInstance($field, $instance = NULL, $entity_type = NULL, $entity = NULL) {
  return new EntityReferenceSelectionHandlerBroken($field, $instance, $entity_type, $entity);
}