Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Drupal.php

function Drupal::installProfile

Gets the active install profile.

Return value

string|false|null The name of the active install profile. FALSE indicates that the site is not using an install profile. NULL indicates that the site has not yet been installed.

11 calls to Drupal::installProfile()
BlockHooks::modulesInstalled in core/modules/block/src/Hook/BlockHooks.php
Implements hook_modules_installed().
block_themes_installed in core/modules/block/block.module
Initializes blocks for installed themes.
demo_umami_requirements in core/profiles/demo_umami/demo_umami.install
Implements hook_requirements().
drupal_install_profile_distribution_name in core/includes/install.inc
Loads the installation profile, extracting its defined distribution name.
drupal_install_profile_distribution_version in core/includes/install.inc
Loads the installation profile, extracting its defined version.

... See full list

File

core/lib/Drupal.php, line 231

Class

Drupal
Static Service Container wrapper.

Code

public static function installProfile() {
    return static::getContainer()->getParameter('install_profile');
}
RSS feed
Powered by Drupal