function MessengerInterface::deleteByType
Same name in other branches
- 9 core/lib/Drupal/Core/Messenger/MessengerInterface.php \Drupal\Core\Messenger\MessengerInterface::deleteByType()
- 8.9.x core/lib/Drupal/Core/Messenger/MessengerInterface.php \Drupal\Core\Messenger\MessengerInterface::deleteByType()
- 10 core/lib/Drupal/Core/Messenger/MessengerInterface.php \Drupal\Core\Messenger\MessengerInterface::deleteByType()
Deletes all messages of a certain type.
Parameters
string $type: The messages' type. Either self::TYPE_STATUS, self::TYPE_WARNING, or self::TYPE_ERROR.
Return value
string[]|\Drupal\Component\Render\MarkupInterface[] The deleted messages of given type.
1 method overrides MessengerInterface::deleteByType()
- Messenger::deleteByType in core/
lib/ Drupal/ Core/ Messenger/ Messenger.php
File
-
core/
lib/ Drupal/ Core/ Messenger/ MessengerInterface.php, line 132
Class
- MessengerInterface
- Stores runtime messages sent out to individual users on the page.
Namespace
Drupal\Core\MessengerCode
public function deleteByType($type);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.