You are here

public function MessageCommand::getAttachedAssets in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Ajax/MessageCommand.php \Drupal\Core\Ajax\MessageCommand::getAttachedAssets()
  2. 9 core/lib/Drupal/Core/Ajax/MessageCommand.php \Drupal\Core\Ajax\MessageCommand::getAttachedAssets()

File

core/lib/Drupal/Core/Ajax/MessageCommand.php, line 95

Class

MessageCommand
AJAX command for a JavaScript Drupal.message() call.

Namespace

Drupal\Core\Ajax

Code

public function getAttachedAssets() {
  $assets = new AttachedAssets();
  $assets
    ->setLibraries([
    'core/drupal.message',
  ]);
  return $assets;
}