You are here

public static function EntityReference_SelectionHandler_Broken::getInstance in Entity reference 7

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

Parameters

$field: A field datastructure.

Return value

EntityReferenceHandler

Overrides EntityReference_SelectionHandler::getInstance

2 calls to EntityReference_SelectionHandler_Broken::getInstance()
entityreference_get_selection_handler in ./entityreference.module
Get the selection handler for a given entityreference field.
EntityReference_SelectionHandler_Generic::getInstance in plugins/selection/EntityReference_SelectionHandler_Generic.class.php
Implements EntityReferenceHandler::getInstance().

File

plugins/selection/abstract.inc, line 77
Abstraction of the selection logic of an entity reference field.

Class

EntityReference_SelectionHandler_Broken
A null implementation of EntityReference_SelectionHandler.

Code

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