function Views::viewsData

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

Returns the views data service.

Return value

\Drupal\views\ViewsData Returns a views data cache object.

4 calls to Views::viewsData()
DefaultWizardDeriver::getDerivativeDefinitions in core/modules/views/src/Plugin/Derivative/DefaultWizardDeriver.php
Gets the definition of all derivatives of a base plugin.
HandlerBase::getViewsData in core/modules/views/src/Plugin/views/HandlerBase.php
Gets views data service.
QueryPluginBase::getEntityTableInfo in core/modules/views/src/Plugin/views/query/QueryPluginBase.php
Returns an array of all tables from the query that map to an entity type.
View::onDependencyRemoval in core/modules/views/src/Entity/View.php
Informs the entity that entities it depends on will be deleted.

File

core/modules/views/src/Views.php, line 57

Class

Views
Static service container wrapper for views.

Namespace

Drupal\views

Code

public static function viewsData() {
    return \Drupal::service('views.views_data');
}

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