function ViewsEntityRow::__construct

Same name in other branches
  1. 9 core/modules/views/src/Plugin/Derivative/ViewsEntityRow.php \Drupal\views\Plugin\Derivative\ViewsEntityRow::__construct()
  2. 10 core/modules/views/src/Plugin/Derivative/ViewsEntityRow.php \Drupal\views\Plugin\Derivative\ViewsEntityRow::__construct()
  3. 11.x core/modules/views/src/Plugin/Derivative/ViewsEntityRow.php \Drupal\views\Plugin\Derivative\ViewsEntityRow::__construct()

Constructs a ViewsEntityRow object.

Parameters

string $base_plugin_id: The base plugin ID.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\views\ViewsData $views_data: The views data service.

File

core/modules/views/src/Plugin/Derivative/ViewsEntityRow.php, line 64

Class

ViewsEntityRow
Provides views row plugin definitions for all non-special entity types.

Namespace

Drupal\views\Plugin\Derivative

Code

public function __construct($base_plugin_id, EntityTypeManagerInterface $entity_type_manager, ViewsData $views_data) {
    $this->basePluginId = $base_plugin_id;
    $this->entityTypeManager = $entity_type_manager;
    $this->viewsData = $views_data;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.