localgovdrupal / localgov_core
Helper functions and core dependencies for the LocalGov Drupal distribution.
Installs: 75 631
Dependents: 19
Suggesters: 1
Security: 0
Stars: 3
Watchers: 7
Forks: 6
Open Issues: 32
Type:drupal-module
Requires
- drupal/field_group: ^3.1
- drupal/image_widget_crop: ^2.3
- drupal/linkit: ^6.0-beta1
- drupal/media_library_edit: ^3.0
- drupal/metatag: ^2.0.2
- drupal/pathauto: ^1.8
- drupal/role_delegation: ^1.1
- drupal/token: ^1.7
Requires (Dev)
- drupal/paragraphs: ^1.12
- 2.x-dev
- 2.13.10
- 2.13.9
- 2.13.8
- 2.13.7
- 2.13.6
- 2.13.5
- 2.13.4
- 2.13.3
- 2.13.2
- 2.13.1
- 2.13.0
- 2.12.2
- 2.12.1
- 2.12.0
- 2.11.2
- 2.1.11
- 2.1.10
- 2.1.9
- 2.1.8
- 2.1.7
- 2.1.6
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.2
- 2.0.1
- 2.0.0
- 1.x-dev
- 1.0.1
- 1.0.0
- 1.0.0-alpha4
- 1.0.0-alpha3
- 1.0.0-alpha2
- 1.0.0-alpha1
- dev-release-2.x
- dev-feature/705/add-documents-via-linkit
- dev-220/remove-access-files-overview-permission
- dev-fix/2.x/coding-standards-from-drupal-coder-update
- dev-fix/2.x/245-installing-site-from-existing-config-fails
- dev-243/fix/is-syncing
- dev-fix/2.x/static-analysis-errors
- dev-fix/localgov-roles-modules-installed
- dev-fix/2.x/eventdispatcher-update
- dev-feature/2.x/211-installing-blocks
- dev-feature/216/admin-role-module
- dev-216/add-admin-role
- dev-694/add-compare-button-top-page
- dev-feature/57/card-view-mode
- dev-fix/2.x/additional-strict-type-fixes
- dev-feature/2.x/shared-workflows
- dev-feature/718-content-tabs-weights-core-module
- dev-222/remove-redirect
- dev-638/feature/content_access_by_path
- dev-fix/2.x/210-strict-types
- dev-feature/fix-deprecations-missing-image-loading-config
- dev-fix/2.x/207-coding-standards
- dev-fix/2.x-205-coding-standards-strict-types
- dev-feature/2.x-203-user-manager-role-constant
- dev-668/allow-csv-media-document
- dev-feature/2.x-192-stacked-header
- dev-feature/186-coding-standards
- dev-fix/184-alert-fail
- dev-feature/d10-linkit/182
- dev-feature/d10-compatibility/182
- dev-feature/2.x/512-redirect-at-login
- dev-fix/551-redirect-errors
- dev-feature/2.x/generator-tag/176
- dev-feature/drupal-10
- dev-feature/160-ckeditor5-linkit
- dev-fix/153-media-edit-update
- dev-header_block_cache_tags
- dev-bug/field-formatter-class-depencency
- dev-fix/147-custom-patch-for-field-group-failed
- dev-feature/2.x/allow-media-items-to-be-cropped
- dev-feature/2.x/239-freestyle-crop
- dev-feature/2.x/media-edit
- dev-fix/142-pathauto_patterns
- dev-feature/2.x/video-full-width
- dev-fix/github-workflow-update-2022-06-22
- dev-fix/2.x/derived-test-fail
- dev-fix/129-localgov_media-dependencies
- dev-fix/122-mising-test-description
- dev-feature/2.x-add-localgov_admin_theme_improvements-module/118
- dev-feature/2.x/workflow
- dev-feature/101-relabel-localgov-media
- dev-feature/2.x/30-default-documentation
- dev-feature/2.x/30-permissions-install
- dev-feature/1.x/85-linkit-email-matcher
- dev-feature/85-linkit-email-matcher
- dev-fix/75-2.x-fix-paragraph
- dev-release-1.x
- dev-fix/75-fix-paragraphs
- dev-feature/drush-deploy-compatible-field-renaming
- dev-fix/35-rename-fields
- dev-fix/35a-rename-fields-field_group
- dev-feature/githubactions-6-update-workflow-files
- dev-feature/45-responsive-image-28-9
- dev-feature/41-tables-in-ckeditor
- dev-feature/homepage-paragraphs-display-modes
- dev-feature/78-naming-conventions
- dev-feature/31-naming-consistency
- dev-feature/localgov-42--workflow
- dev-feature/media-in-localgov-core
- dev-feature/services-6-block-tests
- dev-feature/27-core-version-requirement
This package is auto-updated.
Last update: 2024-10-15 11:44:42 UTC
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.