varbase_layout_builder-9.0.0-alpha2/includes/updates/v9.inc

includes/updates/v9.inc
<?php

/**
 * @file
 * Contains varbase_layout_builder_update_9###(s) hook updates.
 */

use Vardot\Installer\ModuleInstallerFactory;

/**
 * Issue #3272216: Switch to use the Module Installer Factory.
 *
 * In the Varbase Layout Builder module.
 */
function varbase_layout_builder_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_layout_builder');
}

/**
 * Issue Issue #3415842: Disable Layout Builder Block Sanitizer module.
 *
 * And uninstall it, as it is no longer supported.
 */
function varbase_layout_builder_update_90002() {
  if (\Drupal::moduleHandler()->moduleExists('layout_builder_block_sanitizer')) {
    \Drupal::service('module_installer')->uninstall(['layout_builder_block_sanitizer'], FALSE);
  }
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc