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

Breadcrumb

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

function InstallerKernel::getInstallProfile

Overrides DrupalKernel::getInstallProfile

File

core/lib/Drupal/Core/Installer/InstallerKernel.php, line 55

Class

InstallerKernel
Extend DrupalKernel to handle force some kernel behaviors.

Namespace

Drupal\Core\Installer

Code

public function getInstallProfile() {
    global $install_state;
    if ($install_state && empty($install_state['installation_finished'])) {
        // If the profile has been selected return it.
        if (isset($install_state['parameters']['profile'])) {
            $profile = $install_state['parameters']['profile'];
        }
        else {
            $profile = NULL;
        }
    }
    else {
        $profile = parent::getInstallProfile();
    }
    return $profile;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal