itk-dev/drupal_admin_message 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

itk-dev/drupal_admin_message

最新稳定版本:1.2.0

Composer 安装命令:

composer require itk-dev/drupal_admin_message

包简介

Drupal admin message

README 文档

README

Show message on admin routes.

Admin message

Installation

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';

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;';

The message can optionally be shown on all pages:

# settings.local.php
$settings['drupal_admin_message']['show_on_all_pages'] = TRUE;

Coding standards

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'

Code analysis

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

统计信息

  • 总下载量: 944
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-23