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.

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.

  • where does the profile name stored in database? In which table I can find profile name? – Sugandh Khanna Jun 22 '16 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 '16 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

  • where does the profile name stored in database? In which table I can find profile name? – Sugandh Khanna Jun 22 '16 at 12:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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