HtmlTag

Provides a render element for any HTML tag, with properties and value. Properties: #tag: The tag name to output. #attributes: (array, optional) HTML attributes to apply to the tag. The attributes are escaped, see \Drupal\Core\Template\Attribute. #value: (string, optional) A string containing the textual contents of the tag. #noscript: (bool, optional) When set to TRUE, the markup (including any prefix or suffix) will be wrapped in a <noscript> element. Usage example: $build['hello']

HtmlResponseBigPipeSubscriber::__construct

public HtmlResponseBigPipeSubscriber::__construct(BigPipeInterface $big_pipe) Constructs a HtmlResponseBigPipeSubscriber object. Parameters \Drupal\big_pipe\Render\BigPipeInterface $big_pipe: The BigPipe service. File core/modules/big_pipe/src/EventSubscriber/HtmlResponseBigPipeSubscriber.php, line 34 Class HtmlResponseBigPipeSubscriber Response subscriber to replace the HtmlResponse with a BigPipeResponse. Namespace Drupal\big_pipe\EventSubscriber Code public function __construct(Big

HtmlResponseBigPipeSubscriber::onRespondEarly

public HtmlResponseBigPipeSubscriber::onRespondEarly(FilterResponseEvent $event) Adds markers to the response necessary for the BigPipe render strategy. Parameters \Symfony\Component\HttpKernel\Event\FilterResponseEvent $event: The event to process. File core/modules/big_pipe/src/EventSubscriber/HtmlResponseBigPipeSubscriber.php, line 44 Class HtmlResponseBigPipeSubscriber Response subscriber to replace the HtmlResponse with a BigPipeResponse. Namespace Drupal\big_pipe\EventSubscriber

HtmlResponseBigPipeSubscriber::onRespond

public HtmlResponseBigPipeSubscriber::onRespond(FilterResponseEvent $event) Transforms a HtmlResponse to a BigPipeResponse. Parameters \Symfony\Component\HttpKernel\Event\FilterResponseEvent $event: The event to process. File core/modules/big_pipe/src/EventSubscriber/HtmlResponseBigPipeSubscriber.php, line 69 Class HtmlResponseBigPipeSubscriber Response subscriber to replace the HtmlResponse with a BigPipeResponse. Namespace Drupal\big_pipe\EventSubscriber Code public function onRespo

HtmlResponseBigPipeSubscriber::getSubscribedEvents

public static HtmlResponseBigPipeSubscriber::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $pr

HtmlResponseBigPipeSubscriber::$bigPipe

The BigPipe service. Type: \Drupal\big_pipe\Render\BigPipeInterface File core/modules/big_pipe/src/EventSubscriber/HtmlResponseBigPipeSubscriber.php, line 26 Class HtmlResponseBigPipeSubscriber Response subscriber to replace the HtmlResponse with a BigPipeResponse. Namespace Drupal\big_pipe\EventSubscriber Code protected $bigPipe;

HtmlResponseBigPipeSubscriber

Response subscriber to replace the HtmlResponse with a BigPipeResponse. @todo Refactor once https://www.drupal.org/node/2577631 lands. Hierarchy class \Drupal\big_pipe\EventSubscriber\HtmlResponseBigPipeSubscriber implements EventSubscriberInterface See also \Drupal\big_pipe\Render\BigPipeInterface File core/modules/big_pipe/src/EventSubscriber/HtmlResponseBigPipeSubscriber.php, line 19 Namespace Drupal\big_pipe\EventSubscriber Members Name Modifiers Type Description HtmlResp

HtmlResponseAttachmentsProcessor::__construct

public HtmlResponseAttachmentsProcessor::__construct(AssetResolverInterface $asset_resolver, ConfigFactoryInterface $config_factory, AssetCollectionRendererInterface $css_collection_renderer, AssetCollectionRendererInterface $js_collection_renderer, RequestStack $request_stack, RendererInterface $renderer, ModuleHandlerInterface $module_handler) Constructs a HtmlResponseAttachmentsProcessor object. Parameters \Drupal\Core\Asset\AssetResolverInterface $asset_resolver: An asset resolver. \Drupal

HtmlResponseAttachmentsProcessor::setHeaders

protected HtmlResponseAttachmentsProcessor::setHeaders(HtmlResponse $response, array $headers) Sets headers on a response object. Parameters \Drupal\Core\Render\HtmlResponse $response: The HTML response to update. array $headers: The headers to set, as an array. The items in this array should be as follows: The header name. The header value. (optional) Whether to replace a current value with the new one, or add it to the others. If the value is not replaced, it will be appended, resulting in a

HtmlResponseAttachmentsProcessor::renderPlaceholders

protected HtmlResponseAttachmentsProcessor::renderPlaceholders(HtmlResponse $response) Renders placeholders (#attached['placeholders']). First, the HTML response object is converted to an equivalent render array, with #markup being set to the response's content and #attached being set to the response's attachments. Among these attachments, there may be placeholders that need to be rendered (replaced). Next, RendererInterface::renderRoot() is called, which renders the placeholders into their fin