function InstallCommand::validateProfile
Same name in other branches
- 9 core/lib/Drupal/Core/Command/InstallCommand.php \Drupal\Core\Command\InstallCommand::validateProfile()
- 8.9.x core/lib/Drupal/Core/Command/InstallCommand.php \Drupal\Core\Command\InstallCommand::validateProfile()
- 10 core/lib/Drupal/Core/Command/InstallCommand.php \Drupal\Core\Command\InstallCommand::validateProfile()
Validates a user provided install profile.
Parameters
string $install_profile: Install profile to validate.
Return value
bool TRUE if the profile is valid, FALSE if not.
1 call to InstallCommand::validateProfile()
- InstallCommand::execute in core/
lib/ Drupal/ Core/ Command/ InstallCommand.php
File
-
core/
lib/ Drupal/ Core/ Command/ InstallCommand.php, line 321
Class
- InstallCommand
- Installs a Drupal site for local testing/development.
Namespace
Drupal\Core\CommandCode
protected function validateProfile($install_profile) : bool {
// Allow people to install hidden and non-distribution profiles if they
// supply the argument.
return array_key_exists($install_profile, $this->getProfiles(TRUE, FALSE));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.