function Drupal::installProfile
Same name in other branches
- 9 core/lib/Drupal.php \Drupal::installProfile()
- 10 core/lib/Drupal.php \Drupal::installProfile()
- 11.x core/lib/Drupal.php \Drupal::installProfile()
Gets the active install profile.
Return value
string|null The name of the active install profile.
21 calls to Drupal::installProfile()
- 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.
- DistributionProfileTest::testInstalled in core/
tests/ Drupal/ FunctionalTests/ Installer/ DistributionProfileTest.php - Confirms that the installation succeeded.
- drupal_get_profile in core/
includes/ bootstrap.inc - Gets the name of the currently active installation profile.
File
-
core/
lib/ Drupal.php, line 190
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.