function TestSiteUserLoginCommand::configure

Same name in other branches
  1. 9 core/tests/Drupal/TestSite/Commands/TestSiteUserLoginCommand.php \Drupal\TestSite\Commands\TestSiteUserLoginCommand::configure()
  2. 8.9.x core/tests/Drupal/TestSite/Commands/TestSiteUserLoginCommand.php \Drupal\TestSite\Commands\TestSiteUserLoginCommand::configure()
  3. 10 core/tests/Drupal/TestSite/Commands/TestSiteUserLoginCommand.php \Drupal\TestSite\Commands\TestSiteUserLoginCommand::configure()

File

core/tests/Drupal/TestSite/Commands/TestSiteUserLoginCommand.php, line 34

Class

TestSiteUserLoginCommand
Command to generate a login link for the test site.

Namespace

Drupal\TestSite\Commands

Code

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.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.