function views_handler_field_entity::init

Initialize the entity type.

Overrides views_handler_field::init

File

handlers/views_handler_field_entity.inc, line 41

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);
    if (isset($table_data['table']['entity type'])) {
        $this->entity_type = $table_data['table']['entity type'];
    }
}