BlockListController::create

public static BlockListController::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 serv

BlockListController::$themeHandler

The theme handler. Type: \Drupal\Core\Extension\ThemeHandlerInterface File core/modules/block/src/Controller/BlockListController.php, line 21 Class BlockListController Defines a controller to list blocks. Namespace Drupal\block\Controller Code protected $themeHandler;

BlockListController

Defines a controller to list blocks. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\Controller\EntityListControllerclass \Drupal\block\Controller\BlockListController File core/modules/block/src/Controller/BlockListController.php, line 14 Namespace Drupal\block\Controller Members Name Modifiers Typ

BlockListBuilder::__construct

public BlockListBuilder::__construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, ThemeManagerInterface $theme_manager, FormBuilderInterface $form_builder) Constructs a new BlockListBuilder object. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition. \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class. \Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The theme manager. \Drupal\Core\Form\FormBuilderI

BlockListBuilder::validateForm

public BlockListBuilder::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::validateForm File core/modules/block/src/BlockListBuilder.php, line 350 Class BlockListBuilder Defines a class to build a listing of block entities. Namespace Drupal\block Code public fun

BlockListBuilder::systemRegionList

protected BlockListBuilder::systemRegionList($theme, $show = REGIONS_ALL) Wraps system_region_list(). File core/modules/block/src/BlockListBuilder.php, line 381 Class BlockListBuilder Defines a class to build a listing of block entities. Namespace Drupal\block Code protected function systemRegionList($theme, $show = REGIONS_ALL) { return system_region_list($theme, $show); }

BlockListBuilder::submitForm

public BlockListBuilder::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::submitForm File core/modules/block/src/BlockListBuilder.php, line 357 Class BlockListBuilder Defines a class to build a listing of block entities. Namespace Drupal\block Code public functio

BlockListBuilder::render

public BlockListBuilder::render($theme = NULL, Request $request = NULL) Parameters string|null $theme: (optional) The theme to display the blocks for. If NULL, the current theme will be used. \Symfony\Component\HttpFoundation\Request $request: The current request. Return value array The block list as a renderable array. Overrides EntityListBuilder::render File core/modules/block/src/BlockListBuilder.php, line 102 Class BlockListBuilder Defines a class to build a listing of block entities

BlockListBuilder::getThemeName

protected BlockListBuilder::getThemeName() Gets the name of the theme used for this block listing. Return value string The name of the theme. File core/modules/block/src/BlockListBuilder.php, line 316 Class BlockListBuilder Defines a class to build a listing of block entities. Namespace Drupal\block Code protected function getThemeName() { // If no theme was specified, use the current theme. if (!$this->theme) { $this->theme = $this->themeManager->getActiveTheme()-

BlockListBuilder::getFormId

public BlockListBuilder::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/block/src/BlockListBuilder.php, line 112 Class BlockListBuilder Defines a class to build a listing of block entities. Namespace Drupal\block Code public function getFormId() { return 'block_admin_display_form'; }