You are here

public static function EntityReference_SelectionHandler::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

3 methods override EntityReference_SelectionHandler::getInstance()
EntityReference_SelectionHandler_Broken::getInstance in plugins/selection/abstract.inc
Factory function: create a new instance of this handler for a given field.
EntityReference_SelectionHandler_Generic::getInstance in plugins/selection/EntityReference_SelectionHandler_Generic.class.php
Implements EntityReferenceHandler::getInstance().
EntityReference_SelectionHandler_Views::getInstance in plugins/selection/EntityReference_SelectionHandler_Views.class.php
Implements EntityReferenceHandler::getInstance().

File

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

Class

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

Code

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