function ViewsDataHelper::__construct

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

Constructs a ViewsData object.

Parameters

\Drupal\views\ViewsData $views_data: The views data object, containing the cached table information.

File

core/modules/views/src/ViewsDataHelper.php, line 32

Class

ViewsDataHelper
Defines a helper class for stuff related to views data.

Namespace

Drupal\views

Code

public function __construct(ViewsData $views_data) {
    $this->data = $views_data;
}

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