BlockDeleteForm::getCancelUrl

public BlockDeleteForm::getCancelUrl() Returns the route to go to if the user cancels the action. Return value \Drupal\Core\Url A URL object. Overrides EntityDeleteFormTrait::getCancelUrl File core/modules/block/src/Form/BlockDeleteForm.php, line 16 Class BlockDeleteForm Provides a deletion confirmation form for the block instance deletion form. Namespace Drupal\block\Form Code public function getCancelUrl() { return new Url('block.admin_display'); }

BlockController::__construct

public BlockController::__construct(ThemeHandlerInterface $theme_handler) Constructs a new BlockController instance. Parameters \Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler. File core/modules/block/src/Controller/BlockController.php, line 29 Class BlockController Controller routines for admin block routes. Namespace Drupal\block\Controller Code public function __construct(ThemeHandlerInterface $theme_handler) { $this->themeHandler = $theme_handle

BlockController::create

public static BlockController::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 service

BlockController::demo

public BlockController::demo($theme) Returns a block theme demo page. Parameters string $theme: The name of the theme. Return value array A #type 'page' render array containing the block region demo. File core/modules/block/src/Controller/BlockController.php, line 51 Class BlockController Controller routines for admin block routes. Namespace Drupal\block\Controller Code public function demo($theme) { if (!$this->themeHandler->hasUi($theme)) { throw new NotFoundHttpExcepti

BlockController

Controller routines for admin block routes. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\block\Controller\BlockController File core/modules/block/src/Controller/BlockController.php, line 14 Namespace Drupal\block\Controller Members Name Modifiers Type Description BlockController::$themeHandler protecte

BlockController::$themeHandler

The theme handler. Type: \Drupal\Core\Extension\ThemeHandlerInterface File core/modules/block/src/Controller/BlockController.php, line 21 Class BlockController Controller routines for admin block routes. Namespace Drupal\block\Controller Code protected $themeHandler;

BlockController::getVisibleRegionNames

protected BlockController::getVisibleRegionNames($theme) Returns the human-readable list of regions keyed by machine name. Parameters string $theme: The name of the theme. Return value array An array of human-readable region names keyed by machine name. File core/modules/block/src/Controller/BlockController.php, line 96 Class BlockController Controller routines for admin block routes. Namespace Drupal\block\Controller Code protected function getVisibleRegionNames($theme) { return s

BlockContentViewsData

Provides the views data for the block_content entity type. Hierarchy class \Drupal\views\EntityViewsData implements EntityHandlerInterface, EntityViewsDataInterface uses StringTranslationTraitclass \Drupal\block_content\BlockContentViewsData File core/modules/block_content/src/BlockContentViewsData.php, line 10 Namespace Drupal\block_content Members Name Modifiers Type Description BlockContentViewsData::getViewsData public function Returns views data for the entity type

BlockContentViewsData::getViewsData

public BlockContentViewsData::getViewsData() Returns views data for the entity type. Return value array Views data in the format of hook_views_data(). Overrides EntityViewsData::getViewsData File core/modules/block_content/src/BlockContentViewsData.php, line 15 Class BlockContentViewsData Provides the views data for the block_content entity type. Namespace Drupal\block_content Code public function getViewsData() { $data = parent::getViewsData(); $data['block_content_field_data']

BlockContentViewBuilder::view

public BlockContentViewBuilder::view(EntityInterface $entity, $view_mode = 'full', $langcode = NULL) Builds the render array for the provided entity. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity to render. string $view_mode: (optional) The view mode that should be used to render the entity. string $langcode: (optional) For which language the entity should be rendered, defaults to the current content language. Return value array A render array for the entity. Throws \Inv