public function AnnounceCommand::getAttachedAssets in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Ajax/AnnounceCommand.php \Drupal\Core\Ajax\AnnounceCommand::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/ 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;
}