function LegacyMessenger::addError

Overrides MessengerInterface::addError

File

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

Class

LegacyMessenger
Provides a LegacyMessenger implementation.

Namespace

Drupal\Core\Messenger

Code

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

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