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.
18 calls to Drupal::installProfile()
- BlockHooks::modulesInstalled in core/
modules/ block/ src/ Hook/ BlockHooks.php - Implements hook_modules_installed().
- BlockHooks::themesInstalled in core/
modules/ block/ src/ Hook/ BlockHooks.php - Implements hook_themes_installed().
- DefaultContentFilesAccessTest::testAccessDeniedToFiles in core/
profiles/ demo_umami/ modules/ demo_umami_content/ tests/ src/ Functional/ DefaultContentFilesAccessTest.php - Tests that sample images, recipes and articles are not accessible.
- DemoUmamiRequirements::runtime in core/
profiles/ demo_umami/ src/ Hook/ DemoUmamiRequirements.php - Implements hook_runtime_requirements().
- DistributionProfileExistingSettingsTest::testInstalled in core/
tests/ Drupal/ FunctionalTests/ Installer/ DistributionProfileExistingSettingsTest.php - Confirms that the installation succeeded.
File
-
core/
lib/ Drupal.php, line 240
Class
- Drupal
- Static Service Container wrapper.
Code
public static function installProfile() {
return static::getContainer()->getParameter('install_profile');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.