AttachedAssets::setSettings

public AttachedAssets::setSettings(array $settings)

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 67

Class

AttachedAssets
The default attached assets collection.

Namespace

Drupal\Core\Asset

Code

public function setSettings(array $settings) {
  $this->settings = $settings;
  return $this;
}
doc_Drupal
2016-10-29 08:44:57
Comments
Leave a Comment

Please login to continue.