W3cubDocs

/Drupal 8

protected function 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 642

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');
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!ConfigInstaller.php/function/ConfigInstaller::drupalGetProfile/8.1.x