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

Breadcrumb

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

function Block::getPluginCollection

Encapsulates the creation of the block's LazyPluginCollection.

Return value

\Drupal\Component\Plugin\LazyPluginCollection The block's plugin collection.

1 call to Block::getPluginCollection()
Block::getPluginCollections in core/modules/block/src/Entity/Block.php

File

core/modules/block/src/Entity/Block.php, line 162

Class

Block
Defines a Block configuration entity class.

Namespace

Drupal\block\Entity

Code

protected function getPluginCollection() {
    if (!$this->pluginCollection) {
        $this->pluginCollection = new BlockPluginCollection(\Drupal::service('plugin.manager.block'), $this->plugin, $this->get('settings'), $this->id());
    }
    return $this->pluginCollection;
}

API Navigation

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