This module adds a new "info" message type to Drupal's built-in messenger service. This allows for distinct styling of informational messages, typically displayed in blue, which can be customized by your theme.
English
The default Drupal 8, 9 and 10 messenger service provides three types of message:
- status
- warning
- error
Each of these has their own styling.
This module adds a new type of message:
- info
With its own distinct styling. The default is blue, but like any styling, this can be changed by the active theme.
The new message can be displayed via the standard function:
\Drupal::messenger()->addMessage(t('Info text message.'), 'info');
Or
\Drupal::messenger()->addInfo('Info text message.');
Português
O modulo info message tem a intenção de permitir aos usuários e desenvolvedores Drupal a renderização de mensagens informativas com fundo azul claro, para isso basta chamar a função drupal_set_message e passar como segundo paramentro (tipo) a string "info".
Exemplo:
\Drupal::messenger()->addMessage('Evite excluir os diretórios de modules manualmente antes de executar a desinstalação', 'info', FALSE);
In Action:
Git Repository:
Gitlab Drupal: https://git.drupalcode.org/project/info_messages
Ask your assistant about Info Messages
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- system Drupal core >= 8.5
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.