function Drupal::installProfile
Same name in other branches
- 9 core/lib/Drupal.php \Drupal::installProfile()
- 8.9.x core/lib/Drupal.php \Drupal::installProfile()
- 11.x core/lib/Drupal.php \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()
- block_modules_installed in core/
modules/ block/ block.module - Implements hook_modules_installed().
- block_themes_installed in core/
modules/ block/ block.module - Initializes blocks for installed themes.
- 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.
- demo_umami_requirements in core/
profiles/ demo_umami/ demo_umami.install - Implements hook_requirements().
- DistributionProfileExistingSettingsTest::testInstalled in core/
tests/ Drupal/ FunctionalTests/ Installer/ DistributionProfileExistingSettingsTest.php - Confirms that the installation succeeded.
File
-
core/
lib/ Drupal.php, line 231
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.