block--system-messages-block.html.twig

Default theme implementation for the messages block. Removes wrapper elements from block so that empty block does not appear when there are no messages. Available variables: content: The content of this block. File core/modules/system/templates/block--system-messages-block.html.twig Related topics Theme system overview Functions and templates for the user interface that themes can override.

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

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

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

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();

BigPipeStrategy::createBigPipeNoJsPlaceholder

protected static BigPipeStrategy::createBigPipeNoJsPlaceholder($original_placeholder, array $placeholder_render_array, $placeholder_must_be_attribute_safe = FALSE) Creates a BigPipe no-JS placeholder. Parameters string $original_placeholder: The original placeholder. array $placeholder_render_array: The render array for a placeholder. bool $placeholder_must_be_attribute_safe: Whether the placeholder must be safe for use in a HTML attribute (in case it's a placeholder for a HTML attribute value

BigPipeStrategy::doProcessPlaceholders

protected BigPipeStrategy::doProcessPlaceholders(array $placeholders) Transforms placeholders to BigPipe placeholders, either no-JS or JS. Parameters array $placeholders: The placeholders to process. Return value array The BigPipe placeholders. File core/modules/big_pipe/src/Render/Placeholder/BigPipeStrategy.php, line 136 Class BigPipeStrategy Defines the BigPipe placeholder strategy, to send HTML in chunks. Namespace Drupal\big_pipe\Render\Placeholder Code protected function doProc