You are here

protected function HtmlResponseAttachmentsProcessor::mergeSettings in Cookie Content Blocker 8

Merge additional settings into the drupal settings.

Parameters

array $settings: The settings to merge.

2 calls to HtmlResponseAttachmentsProcessor::mergeSettings()
HtmlResponseAttachmentsProcessor::generateAssetPlaceholder in src/Render/HtmlResponseAttachmentsProcessor.php
Generate a placeholder script referencing to the original asset.
HtmlResponseAttachmentsProcessor::getJsAssetCollection in src/Render/HtmlResponseAttachmentsProcessor.php
Collects the JS assets.

File

src/Render/HtmlResponseAttachmentsProcessor.php, line 107

Class

HtmlResponseAttachmentsProcessor
Processes attachments of HTML responses.

Namespace

Drupal\cookie_content_blocker\Render

Code

protected function mergeSettings(array $settings) : void {
  self::$drupalSettings = NestedArray::mergeDeepArray([
    self::$drupalSettings,
    $settings,
  ], TRUE);
}