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

Breadcrumb

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

function DefaultSingleLazyPluginCollection::__construct

Constructs a new DefaultSingleLazyPluginCollection object.

Parameters

\Drupal\Component\Plugin\PluginManagerInterface $manager: The manager to be used for instantiating plugins.

string $instance_id: The ID of the plugin instance.

array $configuration: An array of configuration.

4 calls to DefaultSingleLazyPluginCollection::__construct()
BlockPluginCollection::__construct in core/modules/block/src/BlockPluginCollection.php
Constructs a new BlockPluginCollection.
BlockPluginCollection::__construct in core/modules/block/src/BlockPluginCollection.php
Constructs a new BlockPluginCollection.
SearchPluginCollection::__construct in core/modules/search/src/Plugin/SearchPluginCollection.php
Constructs a new SearchPluginCollection.
SearchPluginCollection::__construct in core/modules/search/src/Plugin/SearchPluginCollection.php
Constructs a new SearchPluginCollection.
2 methods override DefaultSingleLazyPluginCollection::__construct()
BlockPluginCollection::__construct in core/modules/block/src/BlockPluginCollection.php
Constructs a new BlockPluginCollection.
SearchPluginCollection::__construct in core/modules/search/src/Plugin/SearchPluginCollection.php
Constructs a new SearchPluginCollection.

File

core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php, line 53

Class

DefaultSingleLazyPluginCollection
Provides a default plugin collection for a plugin type.

Namespace

Drupal\Core\Plugin

Code

public function __construct(PluginManagerInterface $manager, $instance_id, array $configuration) {
    $this->manager = $manager;
    $this->addInstanceId($instance_id, $configuration);
}

API Navigation

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