InstallCommand
class InstallCommand extends Command (View source)
| internal | This command makes no guarantee of an API for Drupal extensions. |
Installs a Drupal site for local testing/development.
Properties
| protected object | $classLoader | The class loader. |
Methods
Constructs a new InstallCommand command.
{@inheritdoc}
{@inheritdoc}
Returns whether there is already an existing Drupal installation.
Installs Drupal with specified installation profile.
Gets the site path.
Selects the install profile to use.
Validates a user provided install profile.
Gets a list of profiles.
Details
__construct(object $class_loader)
Constructs a new InstallCommand command.
protected
configure()
{@inheritdoc}
protected
execute(InputInterface $input, OutputInterface $output)
{@inheritdoc}
protected bool
isDrupalInstalled()
Returns whether there is already an existing Drupal installation.
protected int
install(object $class_loader, SymfonyStyle $io, string $profile, string $langcode, string $site_path, string $site_name)
Installs Drupal with specified installation profile.
protected string
getSitePath()
Gets the site path.
Defaults to 'sites/default'. For testing purposes this can be overridden using the DRUPAL_DEV_SITE_PATH environment variable.
protected string
selectProfile(SymfonyStyle $io)
Selects the install profile to use.
protected bool
validateProfile(string $install_profile, SymfonyStyle $io)
Validates a user provided install profile.
protected string[]
getProfiles(bool $include_hidden = FALSE, bool $auto_select_distributions = TRUE)
Gets a list of profiles.