getExcludedModules example

if (!$collection->exists($configName) && $activeCollection->exists($configName)) {
          // Make sure the config is not removed if it exists.           $collection->write($configName$activeCollection->read($configName));
        }
      }
    }

    $extension = $storage->read('core.extension');
    $existing = $this->activeStorage->read('core.extension');

    $modules = $extension['module'];
    foreach ($this->getExcludedModules() as $module) {
      if (array_key_exists($module$existing['module'])) {
        // Set the modules weight from the active store.         $modules[$module] = $existing['module'][$module];
      }
    }

    // Sort the extensions.     $extension['module'] = module_config_sort($modules);
    // Set the modified extension.     $storage->write('core.extension', $extension);
  }

  
Home | Imprint | This part of the site doesn't use cookies.