interface BlockManagerInterface

Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Block/BlockManagerInterface.php \Drupal\Core\Block\BlockManagerInterface
  2. 10 core/lib/Drupal/Core/Block/BlockManagerInterface.php \Drupal\Core\Block\BlockManagerInterface
  3. 11.x core/lib/Drupal/Core/Block/BlockManagerInterface.php \Drupal\Core\Block\BlockManagerInterface

Provides an interface for the discovery and instantiation of block plugins.

Hierarchy

  • interface \Drupal\Component\Plugin\CategorizingPluginManagerInterface extends \Drupal\Component\Plugin\PluginManagerInterface; interface \Drupal\Core\Plugin\Context\ContextAwarePluginManagerInterface extends \Drupal\Component\Plugin\PluginManagerInterface; interface \Drupal\Core\Plugin\FilteredPluginManagerInterface extends \Drupal\Component\Plugin\PluginManagerInterface
    • interface \Drupal\Core\Block\BlockManagerInterface extends \Drupal\Core\Plugin\Context\ContextAwarePluginManagerInterface \Drupal\Component\Plugin\CategorizingPluginManagerInterface \Drupal\Core\Plugin\FilteredPluginManagerInterface

Expanded class hierarchy of BlockManagerInterface

All classes that implement BlockManagerInterface

10 files declare their use of BlockManagerInterface
Block.php in core/modules/views/src/Plugin/views/display/Block.php
BlockComponentRenderArrayTest.php in core/modules/layout_builder/tests/src/Unit/BlockComponentRenderArrayTest.php
BlockContentBlock.php in core/modules/block_content/src/Plugin/Block/BlockContentBlock.php
BlockLibraryController.php in core/modules/block/src/Controller/BlockLibraryController.php
CategoryAutocompleteController.php in core/modules/block/src/Controller/CategoryAutocompleteController.php

... See full list

File

core/lib/Drupal/Core/Block/BlockManagerInterface.php, line 12

Namespace

Drupal\Core\Block
View source
interface BlockManagerInterface extends ContextAwarePluginManagerInterface, CategorizingPluginManagerInterface, FilteredPluginManagerInterface {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.