BlockRepositoryInterface

Hierarchy interface \Drupal\block\BlockRepositoryInterface File core/modules/block/src/BlockRepositoryInterface.php, line 5 Namespace Drupal\block Members Name Modifiers Type Description BlockRepositoryInterface::getVisibleBlocksPerRegion public function Returns an array of regions and their block entities.

BlockRepository::$blockStorage

The block storage. Type: \Drupal\Core\Entity\EntityStorageInterface File core/modules/block/src/BlockRepository.php, line 20 Class BlockRepository Provides a repository for Block config entities. Namespace Drupal\block Code protected $blockStorage;

BlockRepository

Provides a repository for Block config entities. Hierarchy class \Drupal\block\BlockRepository implements BlockRepositoryInterface File core/modules/block/src/BlockRepository.php, line 13 Namespace Drupal\block Members Name Modifiers Type Description BlockRepository::$blockStorage protected property The block storage. BlockRepository::$themeManager protected property The theme manager. BlockRepository::getVisibleBlocksPerRegion public function Returns an

BlockPlaceEventSubscriber

Hierarchy class \Drupal\block_place\EventSubscriber\BlockPlaceEventSubscriber implements EventSubscriberInterface See also \Drupal\block_place\Plugin\DisplayVariant\PlaceBlockPageVariant File core/modules/block_place/src/EventSubscriber/BlockPlaceEventSubscriber.php, line 14 Namespace Drupal\block_place\EventSubscriber Members Name Modifiers Type Description BlockPlaceEventSubscriber::$account protected property The current user. BlockPlaceEventSubscriber::$requestSta

BlockPlaceEventSubscriber::$requestStack

The request stack. Type: \Symfony\Component\HttpFoundation\RequestStack File core/modules/block_place/src/EventSubscriber/BlockPlaceEventSubscriber.php, line 21 Class BlockPlaceEventSubscriber Namespace Drupal\block_place\EventSubscriber Code protected $requestStack;

BlockPlaceEventSubscriber::__construct

public BlockPlaceEventSubscriber::__construct(RequestStack $request_stack, AccountInterface $account) Constructs a \Drupal\block_place\EventSubscriber\BlockPlaceEventSubscriber object. Parameters \Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack used to retrieve the current request. \Drupal\Core\Session\AccountInterface $account: The current user. File core/modules/block_place/src/EventSubscriber/BlockPlaceEventSubscriber.php, line 38 Class BlockPlaceEventSub

BlockPlaceEventSubscriber::onBlockPageDisplayVariantSelected

public BlockPlaceEventSubscriber::onBlockPageDisplayVariantSelected(PageDisplayVariantSelectionEvent $event) Selects the block place override of the block page display variant. Parameters \Drupal\Core\Render\PageDisplayVariantSelectionEvent $event: The event to process. File core/modules/block_place/src/EventSubscriber/BlockPlaceEventSubscriber.php, line 49 Class BlockPlaceEventSubscriber Namespace Drupal\block_place\EventSubscriber Code public function onBlockPageDisplayVariantSelec

BlockPlaceEventSubscriber::getSubscribedEvents

public static BlockPlaceEventSubscriber::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', $priori

BlockPlaceEventSubscriber::$account

The current user. Type: \Drupal\Core\Session\AccountInterface File core/modules/block_place/src/EventSubscriber/BlockPlaceEventSubscriber.php, line 28 Class BlockPlaceEventSubscriber Namespace Drupal\block_place\EventSubscriber Code protected $account;

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