function Drupal::installProfile
Gets the active install profile.
Return value
string|false|null The name of the active install profile. FALSE indicates that the site is not using an install profile. NULL indicates that the site has not yet been installed.
11 calls to Drupal::installProfile()
- BlockHooks::modulesInstalled in core/
modules/ block/ src/ Hook/ BlockHooks.php - Implements hook_modules_installed().
- block_themes_installed in core/
modules/ block/ block.module - Initializes blocks for installed themes.
- demo_umami_requirements in core/
profiles/ demo_umami/ demo_umami.install - Implements hook_requirements().
- drupal_install_profile_distribution_name in core/
includes/ install.inc - Loads the installation profile, extracting its defined distribution name.
- drupal_install_profile_distribution_version in core/
includes/ install.inc - Loads the installation profile, extracting its defined version.
File
-
core/
lib/ Drupal.php, line 231
Class
- Drupal
- Static Service Container wrapper.
Code
public static function installProfile() {
return static::getContainer()->getParameter('install_profile');
}