function Views::getEnabledDisplayExtenders

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

Gets enabled display extenders.

2 calls to Views::getEnabledDisplayExtenders()
DisplayExtenderTest::testDisplayExtenders in core/modules/views/tests/src/Kernel/Plugin/DisplayExtenderTest.php
Test display extenders.
DisplayPluginBase::initDisplay in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Initializes the display plugin.

File

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

Class

Views
Static service container wrapper for views.

Namespace

Drupal\views

Code

public static function getEnabledDisplayExtenders() {
    $enabled = array_filter((array) \Drupal::config('views.settings')->get('display_extenders'));
    return array_combine($enabled, $enabled);
}

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