Info Messages
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
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.