src/CoreBundle/EventListener/DcGeneral/Table/DcaSettingCondition/ModelToLabelListener.php
private function getLabelText($type)
    {
        $label = $this->translator->trans(
            'tl_metamodel_dcasetting_condition.typedesc.' . $type,
            [],
            'contao_tl_metamodel_dcasetting_condition'
        );
        if ($label === 'tl_metamodel_dcasetting_condition.typedesc.' . $type) {
            $label = $this->translator->trans(
                'tl_metamodel_dcasetting_condition.typedesc._default_',
                [],
                'contao_tl_metamodel_dcasetting_condition'
            );
            if ($label === 'tl_metamodel_dcasetting_condition.typedesc._default_') {
                return $type;
            }
        }
        return $label;
    }
private function getLabelText($type)
    {
        $label = $this->translator->trans(
            'tl_metamodel_dcasetting_condition.typedesc.' . $type,
            [],
            'contao_tl_metamodel_dcasetting_condition'
        );
        if ($label === 'tl_metamodel_dcasetting_condition.typedesc.' . $type) {
            $label = $this->translator->trans(
                'tl_metamodel_dcasetting_condition.typedesc._default_',
                [],
                'contao_tl_metamodel_dcasetting_condition'
            );
            if ($label === 'tl_metamodel_dcasetting_condition.typedesc._default_') {
                return $type;
            }
        }
        return $label;
    }
Retrieve the label text for a condition setting or the default one.

@param string $type The type of the element.

@return string