Neos\Neos\Aspects\NodeTypeConfigurationEnrichmentAspect::shouldFetchTranslation PHP Метод

shouldFetchTranslation() защищенный Метод

Should a label be generated for the given field or is there something configured?
protected shouldFetchTranslation ( array $parentConfiguration, string $fieldName = 'label' ) : boolean
$parentConfiguration array
$fieldName string Name of the possibly existing subfield
Результат boolean
    protected function shouldFetchTranslation(array $parentConfiguration, $fieldName = 'label')
    {
        $fieldValue = array_key_exists($fieldName, $parentConfiguration) ? $parentConfiguration[$fieldName] : '';
        return trim($fieldValue) === 'i18n';
    }