function BareHtmlPageRenderer::__construct
Constructs a new BareHtmlPageRenderer.
Parameters
\Drupal\Core\Render\RendererInterface $renderer: The renderer service.
\Drupal\Core\Render\AttachmentsResponseProcessorInterface $html_response_attachments_processor: The HTML response attachments processor service.
\Drupal\Core\Extension\ThemeSettingsProvider|null $themeSettingsProvider: The theme settings provider service.
File
-
core/
lib/ Drupal/ Core/ Render/ BareHtmlPageRenderer.php, line 37
Class
- BareHtmlPageRenderer
- Default bare HTML page renderer.
Namespace
Drupal\Core\RenderCode
public function __construct(RendererInterface $renderer, AttachmentsResponseProcessorInterface $html_response_attachments_processor, protected ?ThemeSettingsProvider $themeSettingsProvider) {
$this->renderer = $renderer;
$this->htmlResponseAttachmentsProcessor = $html_response_attachments_processor;
if ($themeSettingsProvider === NULL) {
@trigger_error('Calling ' . __CLASS__ . ' constructor without the $themeSettingsProvider argument is deprecated in drupal:11.3.0 and it will be required in drupal:12.0.0. See https://www.drupal.org/project/drupal/issues/3035289', E_USER_DEPRECATED);
$this->themeSettingsProvider = \Drupal::service(ThemeSettingsProvider::class);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.