function AttachedAssetsInterface::setSettings

Same name in other branches
  1. 9 core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php \Drupal\Core\Asset\AttachedAssetsInterface::setSettings()
  2. 8.9.x core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php \Drupal\Core\Asset\AttachedAssetsInterface::setSettings()
  3. 11.x core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php \Drupal\Core\Asset\AttachedAssetsInterface::setSettings()

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

Parameters

array $settings: The needed JavaScript settings.

Return value

$this

1 method overrides AttachedAssetsInterface::setSettings()
AttachedAssets::setSettings in core/lib/Drupal/Core/Asset/AttachedAssets.php

File

core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php, line 55

Class

AttachedAssetsInterface
The attached assets collection for the current response.

Namespace

Drupal\Core\Asset

Code

public function setSettings(array $settings);

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