Skip to content
Snippets Groups Projects
Commit 8eabf8fc authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #3458130: Update Drupal Core to ~10.3.0 and ~11.0.0 with support for...

Issue #3458130: Update Drupal Core to ~10.3.0 and ~11.0.0 with support for recipes in Varbase Style Guide version requirements
parent c2d68e93
No related branches found
No related tags found
No related merge requests found
......@@ -23,10 +23,8 @@
}
},
"require": {
"drupal/core": "~10",
"vardot/varbase-patches": "~9",
"vardot/entity-definition-update-manager": "~1",
"vardot/module-installer-factory": "~1",
"drupal/core": "~10.3.0 || ~11.0.0",
"vardot/varbase-patches": "~9 || ~11",
"drupal/styleguide": "~2.0",
"drupal/vmi": "~2.0"
}
......
name: Varbase Styleguide - Default
description: A recipe to manage default installed modules, configs and permissions.
type: install
install:
- vmi
name: "Varbase Styleguide"
description: "Varbase custom styling guide components."
name: Varbase Styleguide
description: Varbase custom styling guide components.
type: module
package: Varbase
core_version_requirement: ~10
dependencies:
- styleguide:styleguide
install:
- vmi
......@@ -5,16 +5,16 @@
* Contains install and update for Varbase Style guide module.
*/
use Vardot\Installer\ModuleInstallerFactory;
use Drupal\Core\Recipe\Recipe;
use Drupal\Core\Recipe\RecipeRunner;
/**
* Implements hook_install().
*/
function varbase_styleguide_install() {
// Processor for install: in varbase_admin.info.yml file using ModuleInstallerFactory.
// ---------------------------------------------------------------------------.
ModuleInstallerFactory::installList('varbase_styleguide');
$default_recipe = Recipe::createFromDirectory(__DIR__ . '/recipes/default');
RecipeRunner::processRecipe($default_recipe);
}
......@@ -26,5 +26,5 @@ function varbase_styleguide_install() {
function varbase_styleguide_update_90001() {
// Set the weight of the module after installation of list of modules.
// To make sure that any hook or event subscriber worker after all used modules.
ModuleInstallerFactory::setModuleWeightAfterInstallation('varbase_styleguide');
// No longer needed, as switched to dependencies and recipes.
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment