function 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');
}