src/Drupal/functions messages.php

Functions

drupal_get_messages()

drupal_get_messages(?string  $type = null, bool  $clear_queue = true) : array<string,array<int,mixed>>

Parameters

?string $type
bool $clear_queue

Returns

array> —

drupal_set_message()

drupal_set_message(null|string|\Stringable  $message = null, string  $type = 'status', bool  $repeat = true) : string[][]|\Drupal\Component\Render\MarkupInterface[][]

Parameters

null|string|\Stringable $message
string $type
bool $repeat

Returns

string[][]|\Drupal\Component\Render\MarkupInterface[][] —