protected function EntityReference_SelectionHandler_DDF::__construct in Dynamic dependent fields 7
Overrides EntityReference_SelectionHandler_Views::__construct
File
- modules/
ddf_entityreference/ plugins/ selection/ EntityReference_SelectionHandler_DDF.class.php, line 32
Class
- EntityReference_SelectionHandler_DDF
- Entity handler for Views.
Code
protected function __construct($field, $instance, $entity_type, $entity) {
$this->field = $field;
$this->instance = $instance;
$this->entity_type = $entity_type;
$this->entity = $entity;
// Get the entity token type of the entity type.
$entity_info = entity_get_info($entity_type);
$this->entity_type_token = isset($entity_info['token type']) ? $entity_info['token type'] : $entity_type;
}