function AnnounceCommand::render
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Ajax/AnnounceCommand.php \Drupal\Core\Ajax\AnnounceCommand::render()
- 10 core/lib/Drupal/Core/Ajax/AnnounceCommand.php \Drupal\Core\Ajax\AnnounceCommand::render()
- 11.x core/lib/Drupal/Core/Ajax/AnnounceCommand.php \Drupal\Core\Ajax\AnnounceCommand::render()
Overrides CommandInterface::render
File
-
core/
lib/ Drupal/ Core/ Ajax/ AnnounceCommand.php, line 70
Class
- AnnounceCommand
- AJAX command for a JavaScript Drupal.announce() call.
Namespace
Drupal\Core\AjaxCode
public function render() {
$render = [
'command' => 'announce',
'text' => $this->text,
];
if ($this->priority !== NULL) {
$render['priority'] = $this->priority;
}
return $render;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.