Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MessageCommand.php

function MessageCommand::getAttachedAssets

Overrides CommandWithAttachedAssetsInterface::getAttachedAssets

File

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

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;
}
RSS feed
Powered by Drupal