BlockListBuilder::$formBuilder

The form builder. Type: \Drupal\Core\Form\FormBuilderInterface File core/modules/block/src/BlockListBuilder.php, line 52 Class BlockListBuilder Defines a class to build a listing of block entities. Namespace Drupal\block Code protected $formBuilder;

BlockLibraryController::listBlocks

public BlockLibraryController::listBlocks(Request $request, $theme) Shows a list of blocks that can be added to a theme's layout. Parameters \Symfony\Component\HttpFoundation\Request $request: The current request. string $theme: Theme key of the block list. Return value array A render array as expected by the renderer. File core/modules/block/src/Controller/BlockLibraryController.php, line 91 Class BlockLibraryController Provides a list of block plugins to be added to the layout. Names

BlockLibraryController::create

public static BlockLibraryController::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The s

BlockLibraryController::__construct

public BlockLibraryController::__construct(BlockManagerInterface $block_manager, LazyContextRepository $context_repository, RouteMatchInterface $route_match, LocalActionManagerInterface $local_action_manager) Constructs a BlockLibraryController object. Parameters \Drupal\Core\Block\BlockManagerInterface $block_manager: The block manager. \Drupal\Core\Plugin\Context\LazyContextRepository $context_repository: The context repository. \Drupal\Core\Routing\RouteMatchInterface $route_match: The curr

BlockLibraryController::$contextRepository

The context repository. Type: \Drupal\Core\Plugin\Context\LazyContextRepository File core/modules/block/src/Controller/BlockLibraryController.php, line 33 Class BlockLibraryController Provides a list of block plugins to be added to the layout. Namespace Drupal\block\Controller Code protected $contextRepository;

BlockLibraryController::$blockManager

The block manager. Type: \Drupal\Core\Block\BlockManagerInterface File core/modules/block/src/Controller/BlockLibraryController.php, line 26 Class BlockLibraryController Provides a list of block plugins to be added to the layout. Namespace Drupal\block\Controller Code protected $blockManager;

BlockLibraryController::$localActionManager

The local action manager. Type: \Drupal\Core\Menu\LocalActionManagerInterface File core/modules/block/src/Controller/BlockLibraryController.php, line 47 Class BlockLibraryController Provides a list of block plugins to be added to the layout. Namespace Drupal\block\Controller Code protected $localActionManager;

BlockLibraryController::$routeMatch

The route match. Type: \Drupal\Core\Routing\RouteMatchInterface File core/modules/block/src/Controller/BlockLibraryController.php, line 40 Class BlockLibraryController Provides a list of block plugins to be added to the layout. Namespace Drupal\block\Controller Code protected $routeMatch;

BlockLibraryController

Provides a list of block plugins to be added to the layout. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\block\Controller\BlockLibraryController File core/modules/block/src/Controller/BlockLibraryController.php, line 19 Namespace Drupal\block\Controller Members Name Modifiers Type Description BlockLibrar

BlockLibraryController::buildLocalActions

protected BlockLibraryController::buildLocalActions() Builds the local actions for this listing. Return value array An array of local actions for this listing. File core/modules/block/src/Controller/BlockLibraryController.php, line 180 Class BlockLibraryController Provides a list of block plugins to be added to the layout. Namespace Drupal\block\Controller Code protected function buildLocalActions() { $build = $this->localActionManager->getActionsForRoute($this->routeMatch-