public function UpdateTask::execute in Lightning Core 8.4
Same name and namespace in other branches
- 8.5 src/UpdateTask.php \Drupal\lightning_core\UpdateTask::execute()
- 8 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()
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 76
Class
- UpdateTask
- Defines a value object wrapping a single optional configuration update.
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);
}
}