You are here

public function AttachedAssets::setSettings in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Asset/AttachedAssets.php \Drupal\Core\Asset\AttachedAssets::setSettings()

Sets the JavaScript settings that are attached to the current response.

Parameters

array $settings: The needed JavaScript settings.

Return value

$this

Overrides AttachedAssetsInterface::setSettings

File

core/lib/Drupal/Core/Asset/AttachedAssets.php, line 71
Contains \Drupal\Core\Asset\AttachedAssets.

Class

AttachedAssets
The default attached assets collection.

Namespace

Drupal\Core\Asset

Code

public function setSettings(array $settings) {
  $this->settings = $settings;
  return $this;
}