HtmlResponseAttachmentsProcessor::renderHtmlResponseAttachmentPlaceholders

protected HtmlResponseAttachmentsProcessor::renderHtmlResponseAttachmentPlaceholders(HtmlResponse $response, array $placeholders, array $variables) Renders HTML response attachment placeholders. This is the last step where all of the attachments are placed into the response object's contents. Parameters \Drupal\Core\Render\HtmlResponse $response: The HTML response to update. array $placeholders: An array of placeholders, keyed by type with the placeholders present in the content of the respons

HtmlResponseAttachmentsProcessor::processHtmlHeadLink

protected HtmlResponseAttachmentsProcessor::processHtmlHeadLink(array $html_head_link) Transform a html_head_link array into html_head and http_header arrays. html_head_link is a special case of html_head which can be present as a link item in the HTML head section, and also as a Link: HTTP header, depending on options in the render array. Processing it can add to both the html_head and http_header sections. Parameters array $html_head_link: The 'html_head_link' value of a render array. Each h

HtmlResponseAttachmentsProcessor::processHtmlHead

protected HtmlResponseAttachmentsProcessor::processHtmlHead(array $html_head) Ensure proper key/data order and defaults for renderable head items. Parameters array $html_head: The ['#attached']['html_head'] portion of a render array. Return value array The ['#attached']['html_head'] portion of a render array with #type of html_tag added for items without a #type. File core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php, line 372 Class HtmlResponseAttachmentsProcessor Process

HtmlResponseAttachmentsProcessor::processFeed

protected HtmlResponseAttachmentsProcessor::processFeed($attached_feed) Transform a 'feed' attachment into an 'html_head_link' attachment. The RSS feed is a special case of 'html_head_link', so we just turn it into one. Parameters array $attached_feed: The ['#attached']['feed'] portion of a render array. Return value array An ['#attached']['html_head_link'] array, suitable for merging with another 'html_head_link' array. File core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php, l

HtmlResponseAttachmentsProcessor::processAttachments

public HtmlResponseAttachmentsProcessor::processAttachments(AttachmentsInterface $response) Processes the attachments of a response that has attachments. Libraries, JavaScript settings, feeds, HTML <head> tags, HTML <head> links, HTTP headers, and the HTTP status code are attached to render arrays using the #attached property. The #attached property is an associative array, where the keys are the attachment types and the values are the attached data. For example: $build['#attached']

HtmlResponseAttachmentsProcessor::processAssetLibraries

protected HtmlResponseAttachmentsProcessor::processAssetLibraries(AttachedAssetsInterface $assets, array $placeholders) Processes asset libraries into render arrays. Parameters \Drupal\Core\Asset\AttachedAssetsInterface $assets: The attached assets collection for the current response. array $placeholders: The placeholders that exist in the response. Return value array An array keyed by asset type, with keys: styles scripts scripts_bottom File core/lib/Drupal/Core/Render/HtmlResponseAttachme

HtmlResponseAttachmentsProcessor::$requestStack

The request stack. Type: \Symfony\Component\HttpFoundation\RequestStack File core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php, line 67 Class HtmlResponseAttachmentsProcessor Processes attachments of HTML responses. Namespace Drupal\Core\Render Code protected $requestStack;

HtmlResponseAttachmentsProcessor::$renderer

The renderer. Type: \Drupal\Core\Render\RendererInterface File core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php, line 74 Class HtmlResponseAttachmentsProcessor Processes attachments of HTML responses. Namespace Drupal\Core\Render Code protected $renderer;

HtmlResponseAttachmentsProcessor::$moduleHandler

The module handler service. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php, line 81 Class HtmlResponseAttachmentsProcessor Processes attachments of HTML responses. Namespace Drupal\Core\Render Code protected $moduleHandler;

HtmlResponseAttachmentsProcessor::$jsCollectionRenderer

The JS asset collection renderer service. Type: \Drupal\Core\Asset\AssetCollectionRendererInterface File core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php, line 60 Class HtmlResponseAttachmentsProcessor Processes attachments of HTML responses. Namespace Drupal\Core\Render Code protected $jsCollectionRenderer;