function CommandWithAttachedAssetsInterface::getAttachedAssets

Same name in other branches
  1. 9 core/lib/Drupal/Core/Ajax/CommandWithAttachedAssetsInterface.php \Drupal\Core\Ajax\CommandWithAttachedAssetsInterface::getAttachedAssets()
  2. 8.9.x core/lib/Drupal/Core/Ajax/CommandWithAttachedAssetsInterface.php \Drupal\Core\Ajax\CommandWithAttachedAssetsInterface::getAttachedAssets()
  3. 11.x core/lib/Drupal/Core/Ajax/CommandWithAttachedAssetsInterface.php \Drupal\Core\Ajax\CommandWithAttachedAssetsInterface::getAttachedAssets()

Gets the attached assets.

Return value

\Drupal\Core\Asset\AttachedAssets|null The attached assets for this command.

3 methods override CommandWithAttachedAssetsInterface::getAttachedAssets()
AnnounceCommand::getAttachedAssets in core/lib/Drupal/Core/Ajax/AnnounceCommand.php
MessageCommand::getAttachedAssets in core/lib/Drupal/Core/Ajax/MessageCommand.php
TabledragWarningCommand::getAttachedAssets in core/lib/Drupal/Core/Ajax/TabledragWarningCommand.php

File

core/lib/Drupal/Core/Ajax/CommandWithAttachedAssetsInterface.php, line 21

Class

CommandWithAttachedAssetsInterface
Interface for Ajax commands that render content and attach assets.

Namespace

Drupal\Core\Ajax

Code

public function getAttachedAssets();

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