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

Breadcrumb

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

function AlertCommand::render

Implements Drupal\Core\Ajax\CommandInterface:render().

Overrides CommandInterface::render

File

core/lib/Drupal/Core/Ajax/AlertCommand.php, line 32

Class

AlertCommand
AJAX command for a javascript alert box.

Namespace

Drupal\Core\Ajax

Code

public function render() {
    return [
        'command' => 'alert',
        'text' => $this->text,
    ];
}
RSS feed
Powered by Drupal