https://github.com/itk-dev/drupal_admin_message
https://github.com/itk-dev/drupal_admin_message
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/itk-dev/drupal_admin_message
- Owner: itk-dev
- Created: 2023-11-22T10:32:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-23T11:38:06.000Z (over 2 years ago)
- Last Synced: 2025-02-13T08:16:56.400Z (about 1 year ago)
- Language: PHP
- Size: 29.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Drupal admin message
Show message on admin routes.

## Installation
```shell
composer require itk-dev/drupal_admin_message
vendor/bin/drush pm:enable drupal_admin_message
```
Exclude the module from the configuration synchronization (cf.
):
```php
# settings.local.php
$settings['config_exclude_modules'][] = 'drupal_admin_message';
```
## Configuration
```php
# 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
```shell
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
```
```shell
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
```shell
docker run --rm --volume ${PWD}:/app --workdir /app itkdev/php8.2-fpm:latest scripts/code-analysis
```