function AjaxResponseAttachmentsProcessor::__construct

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Ajax/AjaxResponseAttachmentsProcessor.php \Drupal\Core\Ajax\AjaxResponseAttachmentsProcessor::__construct()
  2. 10 core/lib/Drupal/Core/Ajax/AjaxResponseAttachmentsProcessor.php \Drupal\Core\Ajax\AjaxResponseAttachmentsProcessor::__construct()
  3. 9 core/lib/Drupal/Core/Ajax/AjaxResponseAttachmentsProcessor.php \Drupal\Core\Ajax\AjaxResponseAttachmentsProcessor::__construct()
  4. 8.9.x core/lib/Drupal/Core/Ajax/AjaxResponseAttachmentsProcessor.php \Drupal\Core\Ajax\AjaxResponseAttachmentsProcessor::__construct()

Constructs an AjaxResponseAttachmentsProcessor object.

Parameters

\Drupal\Core\Asset\AssetResolverInterface $assetResolver: An asset resolver.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: A config factory for retrieving required config objects.

\Drupal\Core\Asset\AssetCollectionRendererInterface $cssCollectionRenderer: The CSS asset collection renderer.

\Drupal\Core\Asset\AssetCollectionRendererInterface $jsCollectionRenderer: The JS asset collection renderer.

\Symfony\Component\HttpFoundation\RequestStack $requestStack: The request stack.

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

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler.

\Drupal\Core\Language\LanguageManagerInterface $languageManager: The language manager.

File

core/lib/Drupal/Core/Ajax/AjaxResponseAttachmentsProcessor.php, line 52

Class

AjaxResponseAttachmentsProcessor
Processes attachments of AJAX responses.

Namespace

Drupal\Core\Ajax

Code

public function __construct(protected AssetResolverInterface $assetResolver, protected ConfigFactoryInterface $config_factory, protected AssetCollectionRendererInterface $cssCollectionRenderer, protected AssetCollectionRendererInterface $jsCollectionRenderer, protected RequestStack $requestStack, protected RendererInterface $renderer, protected ModuleHandlerInterface $moduleHandler, protected LanguageManagerInterface $languageManager) {
  $this->config = $config_factory->get('system.performance');
}

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