Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DisplayPluginCollection.php

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\views

Code

public function __construct(ViewExecutable $view, PluginManagerInterface $manager) {
    parent::__construct($manager, $view->storage
        ->get('display'));
    $this->view = $view;
    $this->initializePlugin('default');
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal