public function DisplayPluginCollection::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/DisplayPluginCollection.php \Drupal\views\DisplayPluginCollection::__construct()
Constructs a DisplayPluginCollection object.
Parameters
\Drupal\views\ViewExecutable: 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 39 - Contains \Drupal\views\DisplayPluginCollection.
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');
}