定制 localgovdrupal/localgov_core 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

localgovdrupal/localgov_core

最新稳定版本:2.14.14

Composer 安装命令:

composer require localgovdrupal/localgov_core

包简介

Helper functions and core dependencies for the LocalGov Drupal distribution.

README 文档

README

LocalGov Drupal Core module, for helper functions and core dependencies.

Default blocks

This module contains a mechanism that will place default blocks into your site's active theme when other localgov modules are installed. This is intended to reduce the work that site owners need to do when installing new features provided by localgov modules. If you don't want this to happen, you can turn it off by adding this to your site's settings.php file:

$config['localgov_core.settings']['install_default_blocks'] = FALSE;

If you're a module maintainer and would like to use this feature, create a file in your module at config/localgov/block.description.yml. The description part of the filename can be anything you like.

In that file, place the exported config yaml for a single block, and remove the following keys:

  • uuid
  • id
  • theme

The default block installer will read the file, and create an instance of the block in the current active theme, along with localgov_base and localgov_scarfolk, if they exist and are enabled. An id for each instance will be generated from the combination of theme and block plugin name.

Using this feature lets your blocks appear automatically in the right place in existing localgov sites with custom themes. It also saves you having to manage multiple block config files for localgov_base and localgov_scarfolk.

统计信息

  • 总下载量: 119.95k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 19
  • 推荐数: 1

GitHub 信息

  • Stars: 3
  • Watchers: 6
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固