function LegacyMessenger::addWarning

Overrides MessengerInterface::addWarning

File

core/lib/Drupal/Core/Messenger/LegacyMessenger.php, line 80

Class

LegacyMessenger
Provides a LegacyMessenger implementation.

Namespace

Drupal\Core\Messenger

Code

public function addWarning($message, $repeat = FALSE) {
    return $this->addMessage($message, static::TYPE_WARNING, $repeat);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.