Commit 705591c6 authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #3272207: Switch to use the Module Installer Factory in the Varbase Blog...

Issue #3272207: Switch to use the Module Installer Factory in the Varbase Blog (Corporate Blog) module
parent da571c35
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -21,6 +21,12 @@ function varbase_blog_install() {
  ModuleInstallerFactory::importConfigsFromScanedDirectory('varbase_blog', '/^field.storage.*\\.(yml)$/i');
  ModuleInstallerFactory::importConfigsFromScanedDirectory('varbase_blog', '/^.*(settings.yml)$/i');

  // Entity updates to clear up any mismatched entity and/or field definitions
  // And Fix changes were detected in the entity type and field definitions.
  \Drupal::classResolver()
    ->getInstanceFromDefinition(EntityDefinitionUpdateManager::class)
    ->applyUpdates();

  // Forced configs import on install.
  $forced_configs = [
    'views.view.taxonomy_term',