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

Expanded class hierarchy of BlockManagerInterface

All classes that implement BlockManagerInterface

2 files declare their use of BlockManagerInterface
BlockLibraryController.php in core/modules/block/src/Controller/BlockLibraryController.php
CategoryAutocompleteController.php in core/modules/block/src/Controller/CategoryAutocompleteController.php

File

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

Namespace

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

}

Members

Title Sort descending Modifiers Object type Summary Overrides
CategorizingPluginManagerInterface::getCategories public function Gets the names of all categories. 1
CategorizingPluginManagerInterface::getGroupedDefinitions public function Gets sorted plugin definitions grouped by category. 1
CategorizingPluginManagerInterface::getSortedDefinitions public function Gets sorted plugin definitions. 2
ContextAwarePluginManagerInterface::getDefinitionsForContexts public function Determines plugins whose constraints are satisfied by a set of contexts.
DiscoveryInterface::getDefinition public function Gets a specific plugin definition. 4
DiscoveryInterface::getDefinitions public function Gets the definition of all plugins for this type. 3
DiscoveryInterface::hasDefinition public function Indicates if a specific plugin definition exists. 1
FactoryInterface::createInstance public function Creates a pre-configured instance of a plugin. 6
FilteredPluginManagerInterface::getFilteredDefinitions public function Gets the plugin definitions for a given type and consumer and filters them.
MapperInterface::getInstance public function Gets a preconfigured instance of a plugin. 3

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