2

I have installed minimal installation profile. Is there any entry in database where profile name is mentioned, current active profile.

I wanna get the profile name which is get installed in existing site.

5 Answers 5

3

If you go to /admin/reports/status, under Drupal if you see something written after Drupal version, that's your installation profile. If there is nothing, that means it is Standard profile.

2

Have a look at the function drupal_get_profile

Gets the name of the currently active installation profile.

When this function is called during Drupal's initial installation process, the name of the profile that's about to be installed is stored in the global installation state. At all other times, the "install_profile" setting will be available in settings.php.

2
  • where does the profile name stored in database? In which table I can find profile name? Jun 22, 2016 at 12:50
  • 4
    It doesn't @SugandhKhanna, it's added to settings.php during installation. It's never saved to the database.
    – Clive
    Jun 22, 2016 at 13:16
1

You could easily get it with the config api.

$profile = \Drupal::service('config.factory')->get('core.extension')->get('profile');

In the database, it is in the config table, serialized under the core.extension entry.

0

Retrieve Drupal distribution and installation profile information.

$profile = drupal_get_profile();
  $profile_info = system_get_info('module', $profile) + array(
    'distribution_name' => 'Drupal',
    'version' => VERSION,
  );

More information visit here

1
  • where does the profile name stored in database? In which table I can find profile name? Jun 22, 2016 at 12:49
0

If you use Drush:

drush core-status | grep profile

Sample output:

Install profile  : demo_umami

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.