You are here

public static function Views::viewsData in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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.

3 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.

File

core/modules/views/src/Views.php, line 62
Contains \Drupal\views\Views.

Class

Views
Static service container wrapper for views.

Namespace

Drupal\views

Code

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