itk-dev/drupal_admin_message

Drupal admin message

1.0.0 2023-11-23 11:37 UTC

This package is auto-updated.

Last update: 2024-11-23 13:56:32 UTC


README

Show message on admin routes.

Admin message

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