Add label to workflow listing and history to indicate whether it's on hold

This commit is contained in:
2024-08-07 17:25:41 +02:00
committed by Julien Fastré
parent 42471269db
commit 15eaf648df
5 changed files with 23 additions and 1 deletions

View File

@@ -480,4 +480,9 @@ class EntityWorkflow implements TrackCreationInterface, TrackUpdateInterface
return $this->steps->get($this->steps->count() - 2);
}
public function isOnHoldAtCurrentStep(): bool
{
return $this->getCurrentStep()->getHoldsOnStep()->count() > 0;
}
}