Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AttachedAssetsInterface.php

function 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
Sets the JavaScript settings that are attached to the current response.

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);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal