protected function TestSiteUserLoginCommand::configure in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/TestSite/Commands/TestSiteUserLoginCommand.php \Drupal\TestSite\Commands\TestSiteUserLoginCommand::configure()
File
- core/
tests/ Drupal/ TestSite/ Commands/ TestSiteUserLoginCommand.php, line 32
Class
- TestSiteUserLoginCommand
- Command to generate a login link for the test site.
Namespace
Drupal\TestSite\CommandsCode
protected function configure() {
$this
->setName('user-login')
->setDescription('Generate a one time login link for an user.')
->addArgument('uid', InputArgument::REQUIRED, 'The ID of the user for whom the link will be generated')
->addOption('site-path', NULL, InputOption::VALUE_REQUIRED, 'The path for the test site.');
}