itk-dev / drupal_admin_message
Drupal admin message
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:drupal-module
Requires (Dev)
- drupal/coder: ^8.3
- mglaman/phpstan-drupal: ^1.2
- phpstan/extension-installer: ^1.3
- phpstan/phpstan-deprecation-rules: ^1.1
README
Show message on admin routes.
Installation
composer require itk-dev/drupal_admin_message vendor/bin/drush pm:enable 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';
Configuration
# 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;';
Coding standards
docker run --rm --volume ${PWD}:/app --workdir /app itkdev/php8.2-fpm:latest composer install docker run --rm --volume ${PWD}:/app --workdir /app itkdev/php8.2-fpm:latest composer coding-standards-check
docker run --rm --volume ${PWD}:/app --workdir /app node:20 yarn install docker run --rm --volume ${PWD}:/app --workdir /app node:20 yarn coding-standards-check
Code analysis
docker run --rm --volume ${PWD}:/app --workdir /app itkdev/php8.2-fpm:latest scripts/code-analysis