public static function Drupal::installProfile in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal.php \Drupal::installProfile()
Gets the active install profile.
Return value
string|null The name of the active install profile.
17 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 230
Class
- Drupal
- Static Service Container wrapper.
Code
public static function installProfile() {
return static::getContainer()
->getParameter('install_profile');
}