You are here

public static function CerPresetSelectionHandler::getInstance in Corresponding Entity References 7.3

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

File

extensions/cer_entity_settings/plugins/entityreference/selection/CerPresetSelectionHandler.class.php, line 7

Class

CerPresetSelectionHandler

Code

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