function Views::viewsDataHelper

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

Returns the views data helper service.

Return value

\Drupal\views\ViewsDataHelper Returns a views data helper object.

File

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

Class

Views
Static service container wrapper for views.

Namespace

Drupal\views

Code

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

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