You are here

public function MessengerInterface::deleteMessagesByType in Service Container 7.2

Same name and namespace in other branches
  1. 8 src/Messenger/MessengerInterface.php \Drupal\service_container\Messenger\MessengerInterface::deleteMessagesByType()
  2. 7 src/Messenger/MessengerInterface.php \Drupal\service_container\Messenger\MessengerInterface::deleteMessagesByType()

Deletes all messages of a certain type.

Parameters

string $type: The messages' type. Either self::STATUS, self::WARNING, or self::ERROR.

Return value

$this

1 method overrides MessengerInterface::deleteMessagesByType()
LegacyMessenger::deleteMessagesByType in src/Messenger/LegacyMessenger.php
Deletes all messages of a certain type.

File

src/Messenger/MessengerInterface.php, line 79
Contains \Drupal\Core\Messenger\MessengerInterface.

Class

MessengerInterface

Namespace

Drupal\service_container\Messenger

Code

public function deleteMessagesByType($type);