function WideModalRenderer::__construct

Same name in other branches
  1. 8.9.x core/modules/system/tests/modules/dialog_renderer_test/src/Render/MainContent/WideModalRenderer.php \Drupal\dialog_renderer_test\Render\MainContent\WideModalRenderer::__construct()
  2. 10 core/modules/system/tests/modules/dialog_renderer_test/src/Render/MainContent/WideModalRenderer.php \Drupal\dialog_renderer_test\Render\MainContent\WideModalRenderer::__construct()
  3. 11.x 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.