You are here

class EntityReference_SelectionHandler_Broken in Entity reference 7

A null implementation of EntityReference_SelectionHandler.

Hierarchy

Expanded class hierarchy of EntityReference_SelectionHandler_Broken

File

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

View source
class EntityReference_SelectionHandler_Broken implements EntityReference_SelectionHandler {
  public static function getInstance($field, $instance = NULL, $entity_type = NULL, $entity = NULL) {
    return new EntityReference_SelectionHandler_Broken($field, $instance, $entity_type, $entity);
  }
  protected function __construct($field, $instance) {
    $this->field = $field;
    $this->instance = $instance;
  }
  public static function settingsForm($field, $instance) {
    $form['selection_handler'] = array(
      '#markup' => t('The selected selection handler is broken.'),
    );
    return $form;
  }
  public function getReferencableEntities($match = NULL, $match_operator = 'CONTAINS', $limit = 0) {
    return array();
  }
  public function countReferencableEntities($match = NULL, $match_operator = 'CONTAINS') {
    return 0;
  }
  public function validateReferencableEntities(array $ids) {
    return array();
  }
  public function validateAutocompleteInput($input, &$element, &$form_state, $form) {
    return NULL;
  }
  public function entityFieldQueryAlter(SelectQueryInterface $query) {
  }
  public function getLabel($entity) {
    return '';
  }

}

Members

Namesort descending Modifiers Type Description Overrides
EntityReference_SelectionHandler_Broken::countReferencableEntities public function Count entities that are referencable by a given field. Overrides EntityReference_SelectionHandler::countReferencableEntities
EntityReference_SelectionHandler_Broken::entityFieldQueryAlter public function Give the handler a chance to alter the SelectQuery generated by EntityFieldQuery. Overrides EntityReference_SelectionHandler::entityFieldQueryAlter
EntityReference_SelectionHandler_Broken::getInstance public static function Factory function: create a new instance of this handler for a given field. Overrides EntityReference_SelectionHandler::getInstance
EntityReference_SelectionHandler_Broken::getLabel public function Return the label of a given entity. Overrides EntityReference_SelectionHandler::getLabel
EntityReference_SelectionHandler_Broken::getReferencableEntities public function Return a list of referencable entities. Overrides EntityReference_SelectionHandler::getReferencableEntities
EntityReference_SelectionHandler_Broken::settingsForm public static function Generate a settings form for this handler. Overrides EntityReference_SelectionHandler::settingsForm
EntityReference_SelectionHandler_Broken::validateAutocompleteInput public function Validate Input from autocomplete widget that has no Id. Overrides EntityReference_SelectionHandler::validateAutocompleteInput
EntityReference_SelectionHandler_Broken::validateReferencableEntities public function Validate that entities can be referenced by this field. Overrides EntityReference_SelectionHandler::validateReferencableEntities
EntityReference_SelectionHandler_Broken::__construct protected function