Show message on admin routes.
composer require itk-dev/drupal_admin_message
vendor/bin/drush pm:install drupal_admin_message
Exclude the module from the configuration synchronization (cf. https://www.drupal.org/node/3079028):
# settings.local.php
$settings['config_exclude_modules'][] = 'drupal_admin_message';
# settings.local.php
# Define one or more message blocks:
$settings['drupal_admin_message']['blocks'][] = 'This is a message';
$settings['drupal_admin_message']['blocks'][] = 'Some more info';
# Optionally override style (CSS)
$settings['drupal_admin_message']['css']['background-color'] = 'orange';
$settings['drupal_admin_message']['css']['color'] = 'white;';
docker compose run --rm phpfpm composer install
docker compose run --rm phpfpm vendor/bin/phpcbf
docker compose run --rm phpfpm vendor/bin/phpcs
docker compose run --rm markdownlint markdownlint '**/*.md'
Running static analyses on a Drupal module (may) require a full Drupal installation. Therefore we run code analysis using the official Drupal docker image (see scripts/base for details).
./scripts/phpstan
./scripts/rector