HtmlResponseAttachmentsProcessor::$cssCollectionRenderer

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

HtmlResponseAttachmentsProcessor::$config

A config object for the system performance configuration. Type: \Drupal\Core\Config\Config File core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php, line 46 Class HtmlResponseAttachmentsProcessor Processes attachments of HTML responses. Namespace Drupal\Core\Render Code protected $config;

HtmlResponseAttachmentsProcessor::$assetResolver

The asset resolver service. Type: \Drupal\Core\Asset\AssetResolverInterface File core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php, line 39 Class HtmlResponseAttachmentsProcessor Processes attachments of HTML responses. Namespace Drupal\Core\Render Code protected $assetResolver;

HtmlResponseAttachmentsProcessor

Processes attachments of HTML responses. This class is used by the rendering service to process the #attached part of the render array, for HTML responses. To render attachments to HTML for testing without a controller, use the 'bare_html_page_renderer' service to generate a Drupal\Core\Render\HtmlResponse object. Then use its getContent(), getStatusCode(), and/or the headers property to access the result. Hierarchy class \Drupal\Core\Render\HtmlResponseAttachmentsProcessor implements Attachmen

HtmlResponse::setContent

public HtmlResponse::setContent($content) Sets the response content. Valid types are strings, numbers, null, and objects that implement a __toString() method. Parameters mixed $content Content that can be cast to string: Return value Response Throws \UnexpectedValueException Overrides Response::setContent File core/lib/Drupal/Core/Render/HtmlResponse.php, line 30 Class HtmlResponse A response that contains and can expose cacheability metadata and attachments. Namespace Drupal\Core\Re

HtmlResponse

A response that contains and can expose cacheability metadata and attachments. Supports Drupal's caching concepts: cache tags for invalidation and cache contexts for variations. Supports Drupal's idea of #attached metadata: libraries, settings, http_header and html_head. Hierarchy class \Symfony\Component\HttpFoundation\Responseclass \Drupal\Core\Render\HtmlResponse implements CacheableResponseInterface, AttachmentsInterface uses CacheableResponseTrait, AttachmentsTrait See also \Drupal\Co

HtmlRenderer::__construct

public HtmlRenderer::__construct(TitleResolverInterface $title_resolver, PluginManagerInterface $display_variant_manager, EventDispatcherInterface $event_dispatcher, ModuleHandlerInterface $module_handler, RendererInterface $renderer, RenderCacheInterface $render_cache, array $renderer_config) Constructs a new HtmlRenderer. Parameters \Drupal\Core\Controller\TitleResolverInterface $title_resolver: The title resolver. \Drupal\Component\Plugin\PluginManagerInterface $display_variant_manager: The

HtmlRenderer::renderResponse

public HtmlRenderer::renderResponse(array $main_content, Request $request, RouteMatchInterface $route_match) The entire HTML: takes a #type 'page' and wraps it in a #type 'html'. Overrides MainContentRendererInterface::renderResponse File core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php, line 116 Class HtmlRenderer Default main content renderer for HTML requests. Namespace Drupal\Core\Render\MainContent Code public function renderResponse(array $main_content, Request $request,

HtmlRenderer::prepare

protected HtmlRenderer::prepare(array $main_content, Request $request, RouteMatchInterface $route_match) Prepares the HTML body: wraps the main content in #type 'page'. Parameters array $main_content: The render array representing the main content. \Symfony\Component\HttpFoundation\Request $request: The request object, for context. \Drupal\Core\Routing\RouteMatchInterface $route_match: The route match, for context. Return value array An array with two values: 0. A #type 'page' render array. 1

HtmlRenderer::invokePageAttachmentHooks

public HtmlRenderer::invokePageAttachmentHooks(array &$page) Invokes the page attachment hooks. @internal Parameters array &$page: A #type 'page' render array, for which the page attachment hooks will be invoked and to which the results will be added. Throws \LogicException See also hook_page_attachments() hook_page_attachments_alter() File core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php, line 292 Class HtmlRenderer Default main content renderer for HTML requests. Nam