1 views_handler_field_entity.inc public views_handler_field_entity::init(&$view, &$options)

Initialize the entity type.

Overrides views_handler_field::init

File

core/modules/views/handlers/views_handler_field_entity.inc, line 38
Definition of views_handler_field_entity.

Class

views_handler_field_entity
A handler to display data from entity objects.

Code

public function init(&$view, &$options) {
  parent::init($view, $options);

  // Initialize the entity-type used.
  $table_data = views_fetch_data($this->table);
  $this->entity_type = $table_data['table']['entity type'];
}