function AnnounceCommand::getAttachedAssets
Same name in other branches
- 9 core/lib/Drupal/Core/Ajax/AnnounceCommand.php \Drupal\Core\Ajax\AnnounceCommand::getAttachedAssets()
- 8.9.x core/lib/Drupal/Core/Ajax/AnnounceCommand.php \Drupal\Core\Ajax\AnnounceCommand::getAttachedAssets()
- 11.x core/lib/Drupal/Core/Ajax/AnnounceCommand.php \Drupal\Core\Ajax\AnnounceCommand::getAttachedAssets()
Overrides CommandWithAttachedAssetsInterface::getAttachedAssets
File
-
core/
lib/ Drupal/ Core/ Ajax/ AnnounceCommand.php, line 84
Class
- AnnounceCommand
- AJAX command for a JavaScript Drupal.announce() call.
Namespace
Drupal\Core\AjaxCode
public function getAttachedAssets() {
$assets = new AttachedAssets();
$assets->setLibraries([
'core/drupal.announce',
]);
return $assets;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.