You are here

protected function ConfigProviderBase::drupalGetProfile in Configuration Provider 8.2

Gets the install profile from settings.

Return value

string|null 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.

2 calls to ConfigProviderBase::drupalGetProfile()
ConfigProviderBase::getProfileStorages in src/Plugin/ConfigProviderBase.php
Gets the profile storage to use to check for profile overrides.
ConfigProviderOptional::addInstallableConfig in src/Plugin/ConfigProvider/ConfigProviderOptional.php
Adds configuration that is available to be installed or updated.

File

src/Plugin/ConfigProviderBase.php, line 292

Class

ConfigProviderBase
Base class for Configuration provider plugins.

Namespace

Drupal\config_provider\Plugin

Code

protected function drupalGetProfile() {
  return $this->installProfile;
}