You are here

protected function FeaturesManager::drupalGetProfile in Features 8.3

Same name and namespace in other branches
  1. 8.4 src/FeaturesManager.php \Drupal\features\FeaturesManager::drupalGetProfile()

Gets the name of the currently active installation profile.

Return value

string|null The name of the installation profile or NULL if no installation profile is currently active. This is the case for example during the first steps of the installer or during unit tests.

2 calls to FeaturesManager::drupalGetProfile()
FeaturesManager::assignInterPackageDependencies in src/FeaturesManager.php
Assigns dependencies between packages based on configuration dependencies.
FeaturesManager::getAllModules in src/FeaturesManager.php
Returns a list of all modules present on the site's file system.
1 method overrides FeaturesManager::drupalGetProfile()
TestFeaturesManager::drupalGetProfile in tests/src/Unit/FeaturesManagerTest.php
Gets the name of the currently active installation profile.

File

src/FeaturesManager.php, line 837

Class

FeaturesManager
The FeaturesManager provides helper functions for building packages.

Namespace

Drupal\features

Code

protected function drupalGetProfile() {
  return \Drupal::installProfile();
}