ConfigInstaller::drupalGetProfile

protected ConfigInstaller::drupalGetProfile()

Gets the install profile from settings.

Return value

string|null $profile The name of the installation profile or NULL if no installation profile is currently active. This is the case for example during the first steps of the installer or during unit tests.

File

core/lib/Drupal/Core/Config/ConfigInstaller.php, line 646

Class

ConfigInstaller

Namespace

Drupal\Core\Config

Code

protected function drupalGetProfile() {
  // Settings is safe to use because settings.php is written before any module
  // is installed.
  return Settings::get('install_profile');
}
doc_Drupal
2016-10-29 08:53:53
Comments
Leave a Comment

Please login to continue.