src/CoreBundle/EventListener/DcGeneral/Table/FilterSetting/AbstractFilterSettingTypeRenderer.php
protected function getLabelPattern(EnvironmentInterface $environment, ModelInterface $model)
    {
        $translator = $environment->getTranslator();
        $type       = $model->getProperty('type');
        $combined   = 'typedesc.' . $type;

        if (($resultPattern = $translator->translate($combined, 'tl_metamodel_filtersetting')) == $combined) {
            $resultPattern = $translator->translate('typedesc._default_', 'tl_metamodel_filtersetting');
        }

        return $resultPattern;
    }
protected function getLabelPattern(EnvironmentInterface $environment, ModelInterface $model)
    {
        $translator = $environment->getTranslator();
        $type       = $model->getProperty('type');
        $combined   = 'typedesc.' . $type;

        if (($resultPattern = $translator->translate($combined, 'tl_metamodel_filtersetting')) == $combined) {
            $resultPattern = $translator->translate('typedesc._default_', 'tl_metamodel_filtersetting');
        }

        return $resultPattern;
    }
Retrieve the label pattern.

@param EnvironmentInterface $environment The translator in use.
@param ModelInterface       $model       The filter setting to render.

@return string