Pimcore\WorkflowManagement\Workflow\Decorator::getActionLabel PHP Метод

getActionLabel() публичный Метод

public getActionLabel ( $actionName )
    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']);
    }