function 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 325  
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.