function DisplayPluginCollection::__construct
Same name in other branches
- 9 core/modules/views/src/DisplayPluginCollection.php \Drupal\views\DisplayPluginCollection::__construct()
- 10 core/modules/views/src/DisplayPluginCollection.php \Drupal\views\DisplayPluginCollection::__construct()
- 11.x core/modules/views/src/DisplayPluginCollection.php \Drupal\views\DisplayPluginCollection::__construct()
Constructs a DisplayPluginCollection object.
Parameters
\Drupal\views\ViewExecutable $view: The view which has this displays attached.
\Drupal\Component\Plugin\PluginManagerInterface $manager: The manager to be used for instantiating plugins.
Overrides DefaultLazyPluginCollection::__construct
File
-
core/
modules/ views/ src/ DisplayPluginCollection.php, line 34
Class
- DisplayPluginCollection
- A class which wraps the displays of a view so you can lazy-initialize them.
Namespace
Drupal\viewsCode
public function __construct(ViewExecutable $view, PluginManagerInterface $manager) {
parent::__construct($manager, $view->storage
->get('display'));
$this->view = $view;
$this->initializePlugin('default');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.