function WorkspacesCron::run
Executes a cron run.
Do not call this function from a test. Use $this->cronRun() instead.
Return value
bool TRUE upon success, FALSE otherwise.
Overrides CronInterface::run
File
-
core/
modules/ workspaces/ src/ WorkspacesCron.php, line 24
Class
- WorkspacesCron
- Decorates the cron service.
Namespace
Drupal\workspacesCode
public function run() {
// Ensure that cron tasks run without an active workspace.
return $this->workspaceManager
->executeOutsideWorkspace(fn() => $this->inner
->run());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.