BlockDeleteForm

Provides a deletion confirmation form for the block instance deletion form. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\EntityConfirmFormBase implements ConfirmFormInterfaceclass \Drupal\Core\Entity\EntityDelete

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::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

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::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::$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

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

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']

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

BlockContentViewBuilder::viewMultiple

public BlockContentViewBuilder::viewMultiple(array $entities = array(), $view_mode = 'full', $langcode = NULL) Builds the render array for the provided entities. Parameters array $entities: An array of entities implementing EntityInterface to view. 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 A render array for the entit