You are here

public function AjaxRenderer::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Render/MainContent/AjaxRenderer.php \Drupal\Core\Render\MainContent\AjaxRenderer::__construct()
  2. 9 core/lib/Drupal/Core/Render/MainContent/AjaxRenderer.php \Drupal\Core\Render\MainContent\AjaxRenderer::__construct()

Constructs a new AjaxRenderer instance.

Parameters

\Drupal\Core\Render\ElementInfoManagerInterface $element_info_manager: The element info manager.

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

File

core/lib/Drupal/Core/Render/MainContent/AjaxRenderer.php, line 41

Class

AjaxRenderer
Default main content renderer for Ajax requests.

Namespace

Drupal\Core\Render\MainContent

Code

public function __construct(ElementInfoManagerInterface $element_info_manager, RendererInterface $renderer) {
  $this->elementInfoManager = $element_info_manager;
  $this->renderer = $renderer;
}