block--system-menu-block.html.twig

Default theme implementation for a menu block. Available variables: plugin_id: The ID of the block implementation. label: The configured label of the block if visible. configuration: A list of the block's configuration values. label: The configured label for the block. label_display: The display settings for the label. provider: The module or other provider that provided this block plugin. Block plugin specific settings will also be stored here. content: The content of this block. attr

block--system-branding-block.html.twig

Default theme implementation for a branding block. Each branding element variable (logo, name, slogan) is only available if enabled in the block configuration. Available variables: site_logo: Logo for site as defined in Appearance or theme settings. site_name: Name for site as defined in Site information settings. site_slogan: Slogan for site as defined in Site information settings. File core/modules/system/templates/block--system-branding-block.html.twig Related topics Theme system ove

Block API

Information about the classes and interfaces that make up the Block API. Blocks are a combination of a configuration entity and a plugin. The configuration entity stores placement information (theme, region, weight) and any other configuration that is specific to the block. The block plugin does the work of rendering the block's content for display. To define a block in a module you need to: Define a Block plugin by creating a new class that implements the \Drupal\Core\Block\BlockPluginInterfac

Block

Defines a Block configuration entity class. Plugin annotation @ConfigEntityType( id = "block", label = @Translation("Block"), handlers = { "access" = "Drupal\block\BlockAccessControlHandler", "view_builder" = "Drupal\block\BlockViewBuilder", "list_builder" = "Drupal\block\BlockListBuilder", "form" = { "default" = "Drupal\block\BlockForm", "delete" = "Drupal\block\Form\BlockDeleteForm" } }, admin_permission = "administer blocks", entity_keys = { "i

Block

Defines a Block annotation object. Hierarchy class \Drupal\Component\Annotation\Plugin implements AnnotationInterfaceclass \Drupal\Core\Block\Annotation\Block Related topics Annotations Annotations for class discovery and metadata description. Block API Information about the classes and interfaces that make up the Block API. File core/lib/Drupal/Core/Block/Annotation/Block.php, line 14 Namespace Drupal\Core\Block\Annotation Members Name Modifiers Type Description Block::$ad

BinaryInterface

Interface for binary data. The plain value of binary data is a PHP file resource, see http://php.net/manual/language.types.resource.php. For setting the value a PHP file resource or a (absolute) stream resource URI may be passed. Hierarchy interface \Drupal\Core\TypedData\PrimitiveInterfaceinterface \Drupal\Core\TypedData\Type\BinaryInterface Related topics Typed Data API API for describing data based on a set of available data types. File core/lib/Drupal/Core/TypedData/Type/BinaryInterfa

big_pipe_page_attachments

big_pipe_page_attachments(array &$page) Implements hook_page_attachments(). See also \Drupal\big_pipe\Controller\BigPipeController::setNoJsCookie() File core/modules/big_pipe/big_pipe.module, line 35 Adds BigPipe no-JS detection. Code function big_pipe_page_attachments(array &$page) { // Routes that don't use BigPipe also don't need no-JS detection. if (\Drupal::routeMatch()->getRouteObject()->getOption('_no_big_pipe')) { return; } $request = \Drupal::request();

big_pipe_help

big_pipe_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/big_pipe/big_pipe.module, line 15 Adds BigPipe no-JS detection. Code function big_pipe_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.big_pipe': $output = '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The BigPipe module sends pages with dynamic content in a way that allows browsers to show them much fast

big_pipe.module

Adds BigPipe no-JS detection. File core/modules/big_pipe/big_pipe.module Functions Name Description big_pipe_help Implements hook_help(). big_pipe_page_attachments Implements hook_page_attachments().

BigPipeStrategy::__construct

public BigPipeStrategy::__construct(SessionConfigurationInterface $session_configuration, RequestStack $request_stack, RouteMatchInterface $route_match) Constructs a new BigPipeStrategy class. Parameters \Drupal\Core\Session\SessionConfigurationInterface $session_configuration: The session configuration. \Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack. \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match. File core/modules/big_pipe/src