getConfigDependencyManager example



  /** * Get all the configuration which depends on one of the excluded modules. * * @return string[] * An array of configuration names. */
  private function getDependentConfigNames() {
    $modules = $this->getExcludedModules();

    $dependencyManager = $this->manager->getConfigDependencyManager();
    $config = [];

    // Find all the configuration depending on the excluded modules.     foreach ($modules as $module) {
      foreach ($dependencyManager->getDependentEntities('module', $module) as $dependent) {
        $config[] = $dependent->getConfigDependencyName();
      }
      $config = array_merge($config$this->activeStorage->listAll($module . '.'));
    }

    // Find all configuration that depends on the configuration found above.
return FALSE;
    }$this->configFactory->loadMultiple($this->activeStorage->listAll()));
    $dependency_manager->setData(array_filter($data));
    return $dependency_manager;
  }

  /** * {@inheritdoc} */
  public function findConfigEntityDependencies($type, array $names, ConfigDependencyManager $dependency_manager = NULL) {
    if (!$dependency_manager) {
      $dependency_manager = $this->getConfigDependencyManager();
    }
    $dependencies = [];
    foreach ($names as $name) {
      $dependencies[] = $dependency_manager->getDependentEntities($type$name);
    }
    return array_merge(...$dependencies);
  }

  /** * {@inheritdoc} */
  
Home | Imprint | This part of the site doesn't use cookies.