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