BlockPageDisplayVariantSubscriber::getSubscribedEvents

static BlockPageDisplayVariantSubscriber::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $prior

BlockPageDisplayVariantSubscriber

Selects the block page display variant. Hierarchy class \Drupal\block\EventSubscriber\BlockPageDisplayVariantSubscriber implements EventSubscriberInterface See also \Drupal\block\Plugin\DisplayVariant\BlockPageVariant File core/modules/block/src/EventSubscriber/BlockPageDisplayVariantSubscriber.php, line 14 Namespace Drupal\block\EventSubscriber Members Name Modifiers Type Description BlockPageDisplayVariantSubscriber::getSubscribedEvents static function Returns an arra

BlockManagerInterface

Provides an interface for the discovery and instantiation of block plugins. Hierarchy interface \Drupal\Core\Plugin\Context\ContextAwarePluginManagerInterface; interface \Drupal\Component\Plugin\CategorizingPluginManagerInterfaceinterface \Drupal\Core\Block\BlockManagerInterface File core/lib/Drupal/Core/Block/BlockManagerInterface.php, line 11 Namespace Drupal\Core\Block Members Name Modifiers Type Description CategorizingPluginManagerInterface::getCategories public func

BlockManager::__construct

public BlockManager::__construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) Constructs a new \Drupal\Core\Block\BlockManager object. Parameters \Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations. \Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use. \Drupal\Core\Extension\ModuleHandlerI

BlockManager::processDefinition

public BlockManager::processDefinition(&$definition, $plugin_id) Performs extra processing on plugin definitions. By default we add defaults for the type to the definition. If a type has additional processing logic they can do that by replacing or extending the method. Overrides DefaultPluginManager::processDefinition File core/lib/Drupal/Core/Block/BlockManager.php, line 48 Class BlockManager Manages discovery and instantiation of block plugins. Namespace Drupal\Core\Block Code pu

BlockManager::getSortedDefinitions

public BlockManager::getSortedDefinitions(array $definitions = NULL) Gets sorted plugin definitions. Parameters array[]|null $definitions: (optional) The plugin definitions to sort. If omitted, all plugin definitions are used. Return value array[] An array of plugin definitions, sorted by category and label. Overrides CategorizingPluginManagerInterface::getSortedDefinitions File core/lib/Drupal/Core/Block/BlockManager.php, line 56 Class BlockManager Manages discovery and instantiation of

BlockManager::getGroupedDefinitions

public BlockManager::getGroupedDefinitions(array $definitions = NULL) Gets sorted plugin definitions grouped by category. In addition to grouping, both categories and its entries are sorted, whereas plugin definitions are sorted by label. Parameters array[]|null $definitions: (optional) The plugin definitions to group. If omitted, all plugin definitions are used. Return value array[] Keys are category names, and values are arrays of which the keys are plugin IDs and the values are plugin defi

BlockManager

Manages discovery and instantiation of block plugins. @todo Add documentation to this class. Hierarchy class \Drupal\Component\Plugin\PluginManagerBase implements PluginManagerInterface uses DiscoveryTraitclass \Drupal\Core\Plugin\DefaultPluginManager implements CachedDiscoveryInterface, PluginManagerInterface, CacheableDependencyInterface uses DiscoveryCachedTrait, UseCacheBackendTraitclass \Drupal\Core\Block\BlockManager implements FallbackPluginManagerInterface, BlockManagerInterface uses Ca

BlockListController::__construct

public BlockListController::__construct(ThemeHandlerInterface $theme_handler) Constructs the BlockListController. Parameters \Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler. File core/modules/block/src/Controller/BlockListController.php, line 29 Class BlockListController Defines a controller to list blocks. Namespace Drupal\block\Controller Code public function __construct(ThemeHandlerInterface $theme_handler) { $this->themeHandler = $theme_handler;

BlockListController::listing

public BlockListController::listing($theme = NULL, Request $request = NULL) Shows the block administration page. Parameters string|null $theme: Theme key of block list. \Symfony\Component\HttpFoundation\Request $request: The current request. Return value array A render array as expected by drupal_render(). Overrides EntityListController::listing File core/modules/block/src/Controller/BlockListController.php, line 53 Class BlockListController Defines a controller to list blocks. Namespa