You are here

public static function Drupal::installProfile in Drupal 8

Same name and namespace in other branches
  1. 9 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.

... See full list

File

core/lib/Drupal.php, line 190
Contains \Drupal.

Class

Drupal
Static Service Container wrapper.

Code

public static function installProfile() {
  return static::getContainer()
    ->getParameter('install_profile');
}