function MessageCommand::render
Same name in other branches
- 9 core/lib/Drupal/Core/Ajax/MessageCommand.php \Drupal\Core\Ajax\MessageCommand::render()
- 8.9.x core/lib/Drupal/Core/Ajax/MessageCommand.php \Drupal\Core\Ajax\MessageCommand::render()
- 10 core/lib/Drupal/Core/Ajax/MessageCommand.php \Drupal\Core\Ajax\MessageCommand::render()
Overrides CommandInterface::render
File
-
core/
lib/ Drupal/ Core/ Ajax/ MessageCommand.php, line 120
Class
- MessageCommand
- AJAX command for a JavaScript Drupal.message() call.
Namespace
Drupal\Core\AjaxCode
public function render() {
return [
'command' => 'message',
'message' => $this->message,
'messageWrapperQuerySelector' => $this->wrapperQuerySelector,
'messageOptions' => $this->options,
'clearPrevious' => $this->clearPrevious,
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.