protected function ConfigInstaller::drupalGetProfile in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Config/ConfigInstaller.php \Drupal\Core\Config\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.
4 calls to ConfigInstaller::drupalGetProfile()
- ConfigInstaller::checkConfigurationToInstall in core/
lib/ Drupal/ Core/ Config/ ConfigInstaller.php - Checks the configuration that will be installed for an extension.
- ConfigInstaller::getProfileStorages in core/
lib/ Drupal/ Core/ Config/ ConfigInstaller.php - Gets the profile storage to use to check for profile overrides.
- ConfigInstaller::installDefaultConfig in core/
lib/ Drupal/ Core/ Config/ ConfigInstaller.php - Installs the default configuration of a given extension.
- ConfigInstaller::installOptionalConfig in core/
lib/ Drupal/ Core/ Config/ ConfigInstaller.php - Installs optional configuration.
File
- core/
lib/ Drupal/ Core/ Config/ ConfigInstaller.php, line 629 - Contains \Drupal\Core\Config\ConfigInstaller.
Class
Namespace
Drupal\Core\ConfigCode
protected function drupalGetProfile() {
// Settings is safe to use because settings.php is written before any module
// is installed.
return Settings::get('install_profile');
}