try{ $transaction = $this->database->startTransaction(); // @todo Handle the publishing of a workspace with a batch operation in
// https://www.drupal.org/node/2958752.
$this->workspaceManager->executeOutsideWorkspace(function D)use($tracked_entities){