function MessengerInterface::addStatus
Same name in other branches
- 9 core/lib/Drupal/Core/Messenger/MessengerInterface.php \Drupal\Core\Messenger\MessengerInterface::addStatus()
- 10 core/lib/Drupal/Core/Messenger/MessengerInterface.php \Drupal\Core\Messenger\MessengerInterface::addStatus()
- 11.x core/lib/Drupal/Core/Messenger/MessengerInterface.php \Drupal\Core\Messenger\MessengerInterface::addStatus()
Adds a new status message to the queue.
Parameters
string|\Drupal\Component\Render\MarkupInterface $message: (optional) The translated message to be displayed to the user. For consistency with other messages, it should begin with a capital letter and end with a period.
bool $repeat: (optional) If this is FALSE and the message is already set, then the message won't be repeated. Defaults to FALSE.
Return value
$this
2 methods override MessengerInterface::addStatus()
- LegacyMessenger::addStatus in core/
lib/ Drupal/ Core/ Messenger/ LegacyMessenger.php - Adds a new status message to the queue.
- Messenger::addStatus in core/
lib/ Drupal/ Core/ Messenger/ Messenger.php - Adds a new status message to the queue.
File
-
core/
lib/ Drupal/ Core/ Messenger/ MessengerInterface.php, line 60
Class
- MessengerInterface
- Stores runtime messages sent out to individual users on the page.
Namespace
Drupal\Core\MessengerCode
public function addStatus($message, $repeat = FALSE);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.