function Views::pluginManager
Same name in other branches
- 9 core/modules/views/src/Views.php \Drupal\views\Views::pluginManager()
- 8.9.x core/modules/views/src/Views.php \Drupal\views\Views::pluginManager()
- 10 core/modules/views/src/Views.php \Drupal\views\Views::pluginManager()
Returns the plugin manager for a certain views plugin type.
Parameters
string $type: The plugin type, for example filter.
Return value
\Drupal\views\Plugin\ViewsPluginManager
1 call to Views::pluginManager()
- DisplayPluginBase::initDisplay in core/
modules/ views/ src/ Plugin/ views/ display/ DisplayPluginBase.php
File
-
core/
modules/ views/ src/ Views.php, line 99
Class
- Views
- Static service container wrapper for views.
Namespace
Drupal\viewsCode
public static function pluginManager($type) {
return \Drupal::service('plugin.manager.views.' . $type);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.