public function SchedulerCommands::entityUpdate in Scheduler 2.x
Entity Update - add Scheduler fields for entities covered by plugins.
Use the standard drush parameter -q for quiet mode (no terminal output).
@command scheduler:entity-update @aliases sch-ent-upd, scheduler-entity-update
File
- src/
Commands/ SchedulerCommands.php, line 72
Class
- SchedulerCommands
- Drush 9 Scheduler commands for Drupal Core 8.4+.
Namespace
Drupal\scheduler\CommandsCode
public function entityUpdate() {
$result = $this->schedulerManager
->entityUpdate();
$updated = $result ? implode(', ', $result) : dt('nothing to update');
$this->messenger
->addMessage(dt('Scheduler entity update - @updated', [
'@updated' => $updated,
]));
}