getActiveProfile example

    foreach ($container_modules_info as $module_name => $info) {
      $this->setPathname($module_name$info['pathname']);
    }
  }

  /** * {@inheritdoc} */
  protected function getExtensionDiscovery() {
    $discovery = parent::getExtensionDiscovery();

    if ($this->getActiveProfile()) {
      $discovery->setProfileDirectories($this->getProfileDirectories($discovery));
    }

    return $discovery;
  }

  /** * Finds all installation profile paths. * * @param \Drupal\Core\Extension\ExtensionDiscovery $discovery * The extension discovery. * * @return string[] * Paths to all installation profiles. */
Home | Imprint | This part of the site doesn't use cookies.