function WideModalRenderer::__construct
Same name in other branches
- 9 core/modules/system/tests/modules/dialog_renderer_test/src/Render/MainContent/WideModalRenderer.php \Drupal\dialog_renderer_test\Render\MainContent\WideModalRenderer::__construct()
- 8.9.x core/modules/system/tests/modules/dialog_renderer_test/src/Render/MainContent/WideModalRenderer.php \Drupal\dialog_renderer_test\Render\MainContent\WideModalRenderer::__construct()
- 10 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 41
Class
- WideModalRenderer
- Default main content renderer for wide modal dialog requests.
Namespace
Drupal\dialog_renderer_test\Render\MainContentCode
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.