public function getStatusLabel($statusName) { if (!$this->workflow) { throw new \Exception('Decorator needs a workflow to produce labels'); } $config = $this->workflow->getStatusConfig($statusName); return $this->translateLabel($config['label']); }