public function MessagesContext::setMessages in Better Messages 8
Store currently rendered status messages.
Parameters
array $messages: Messages array to store (supposedly it should be the currently rendered ones)
File
- src/
ContextProvider/ MessagesContext.php, line 66
Class
- MessagesContext
- Provides current Drupal status messages as a context.
Namespace
Drupal\better_messages\ContextProviderCode
public function setMessages(array $messages) {
$this->messages = $messages;
}