public function UpdateTask::execute in Lightning Core 8
Same name and namespace in other branches
- 8.5 src/UpdateTask.php \Drupal\lightning_core\UpdateTask::execute()
- 8.2 src/UpdateTask.php \Drupal\lightning_core\UpdateTask::execute()
- 8.3 src/UpdateTask.php \Drupal\lightning_core\UpdateTask::execute()
- 8.4 src/UpdateTask.php \Drupal\lightning_core\UpdateTask::execute()
Prompts for confirmation and executes the task.
Parameters
\Symfony\Component\Console\Style\StyleInterface $io: The console style handler.
bool $force: (optional) If TRUE, the task is executed without confirmation.
File
- src/
UpdateTask.php, line 73
Class
Namespace
Drupal\lightning_coreCode
public function execute(StyleInterface $io, $force = FALSE) {
$proceed = $force ? TRUE : $this
->confirm($io);
if ($proceed) {
$this->reflector
->invoke($this->handler, $io);
}
}