public function CommandWithAttachedAssetsTrait::getAttachedAssets

public CommandWithAttachedAssetsTrait::getAttachedAssets()

Gets the attached assets.

Return value

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

Overrides CommandWithAttachedAssetsInterface::getAttachedAssets

File

core/lib/Drupal/Core/Ajax/CommandWithAttachedAssetsTrait.php, line 48

Class

CommandWithAttachedAssetsTrait
Trait for Ajax commands that render content and attach assets.

Namespace

Drupal\Core\Ajax

Code

public function getAttachedAssets() {
  return $this->attachedAssets;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Ajax!CommandWithAttachedAssetsTrait.php/function/CommandWithAttachedAssetsTrait::getAttachedAssets/8.1.x