https://github.com/discoverygarden/update-helper
Class library to contain some common behaviours during update hooks.
https://github.com/discoverygarden/update-helper
drupal drupal-library
Last synced: 12 months ago
JSON representation
Class library to contain some common behaviours during update hooks.
- Host: GitHub
- URL: https://github.com/discoverygarden/update-helper
- Owner: discoverygarden
- License: gpl-3.0
- Created: 2023-01-11T15:25:42.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-24T17:26:53.000Z (over 2 years ago)
- Last Synced: 2025-03-08T01:04:49.941Z (about 1 year ago)
- Topics: drupal, drupal-library
- Language: PHP
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Update Helper
Class library to contain some common behaviours during update hooks.
## Contents
- `\Discoverygarden\UpdateHelper`
- Contains the single method `::ensureModuleEnabled()` which accepts the name of a module to ensure is enabled, which is a recurring operation over the lifetime of modules as dependencies change, as Drupal does not presently account for new additions to `{extension}.info.yml`. Additionally, it may be desirable to "soften" the inclusion of behaviours that are extracted from a given module such that even if `.info.yml` _was_ enforced, it might not be desirable to have new installations enforce the same module state.