public function EntityRow::init

Overrides Drupal\views\Plugin\views\row\RowPluginBase::init().

Overrides RowPluginBase::init

File

drupal/core/modules/system/lib/Drupal/system/Plugin/views/row/EntityRow.php, line 56
Definition of Drupal\system\Plugin\views\row\EntityRow.

Class

EntityRow
Generic entity row plugin to provide a common base for all entity types.

Namespace

Drupal\system\Plugin\views\row

Code

public function init(ViewExecutable $view, &$display, $options = NULL) {
  parent::init($view, $display, $options);
  $this->entityType = $this->definition['entity_type'];
  $this->entityInfo = entity_get_info($this->entityType);
  $this->base_table = $this->entityInfo['base_table'];
  $this->base_field = $this->entityInfo['entity_keys']['id'];
}