protected function DrupalKernel::getInstallProfile in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::getInstallProfile()
- 9 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::getInstallProfile()
Gets the active install profile.
Return value
string|null The name of the any active install profile or distribution.
1 call to DrupalKernel::getInstallProfile()
- DrupalKernel::compileContainer in core/
lib/ Drupal/ Core/ DrupalKernel.php - Compiles a new service container.
File
- core/
lib/ Drupal/ Core/ DrupalKernel.php, line 1544
Class
- DrupalKernel
- The DrupalKernel class is the core of Drupal itself.
Namespace
Drupal\CoreCode
protected function getInstallProfile() {
$config = $this
->getConfigStorage()
->read('core.extension');
// Normalize an empty string to a NULL value.
return $config['profile'] ?? NULL;
}