public function MessageCommand::getAttachedAssets in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Ajax/MessageCommand.php \Drupal\Core\Ajax\MessageCommand::getAttachedAssets()
- 10 core/lib/Drupal/Core/Ajax/MessageCommand.php \Drupal\Core\Ajax\MessageCommand::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/ MessageCommand.php, line 95
Class
- MessageCommand
- AJAX command for a JavaScript Drupal.message() call.
Namespace
Drupal\Core\AjaxCode
public function getAttachedAssets() {
$assets = new AttachedAssets();
$assets
->setLibraries([
'core/drupal.message',
]);
return $assets;
}