You are here

public function entity_views_handler_field_entity::init in Entity API 7

Initialize the entity type with the field's entity type.

Overrides views_handler_field::init

File

views/handlers/entity_views_handler_field_entity.inc, line 44
Contains the entity_views_handler_field_entity class.

Class

entity_views_handler_field_entity
A handler to provide proper displays for entities retrieved via data selection.

Code

public function init(&$view, &$options) {
  parent::init($view, $options);
  $this->field_entity_type = entity_property_extract_innermost_type($this->definition['type']);
}