You are here

public function WideModalRenderer::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/dialog_renderer_test/src/Render/MainContent/WideModalRenderer.php \Drupal\dialog_renderer_test\Render\MainContent\WideModalRenderer::__construct()

Constructs a new WideModalRenderer.

Parameters

\Drupal\Core\Controller\TitleResolverInterface $title_resolver: The title resolver.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

string $mode: The mode, either 'wide' or 'extra_wide'.

Overrides DialogRenderer::__construct

File

core/modules/system/tests/modules/dialog_renderer_test/src/Render/MainContent/WideModalRenderer.php, line 39

Class

WideModalRenderer
Default main content renderer for wide modal dialog requests.

Namespace

Drupal\dialog_renderer_test\Render\MainContent

Code

public function __construct(TitleResolverInterface $title_resolver, RendererInterface $renderer, $mode = 'wide') {
  parent::__construct($title_resolver, $renderer);
  $this->mode = $mode;
}