private function processCustomShowTypes(array $backendConfig)
    {
        foreach ($backendConfig['entities'] as $entityName => $entityConfig) {
            foreach ($entityConfig['show']['fields'] as $fieldName => $fieldMetadata) {
                if (\array_key_exists($fieldMetadata['type'], static::$mapTypeToTemplates)) {
                    $template = $this->isFieldTemplateDefined($fieldMetadata)
                                    ? $fieldMetadata['template']
                                    : static::$mapTypeToTemplates[$fieldMetadata['type']];
                    $entityConfig['show']['fields'][$fieldName]['template'] = $template;

                    $entityConfig['show']['fields'][$fieldName]['template_options'] = $this->processTemplateOptions(
                        $fieldMetadata['type'], $fieldMetadata
                    );
                }
            }

            $backendConfig['entities'][$entityName] = $entityConfig;
        }

        return $backendConfig;
    }
private function processCustomShowTypes(array $backendConfig)
    {
        foreach ($backendConfig['entities'] as $entityName => $entityConfig) {
            foreach ($entityConfig['show']['fields'] as $fieldName => $fieldMetadata) {
                if (\array_key_exists($fieldMetadata['type'], static::$mapTypeToTemplates)) {
                    $template = $this->isFieldTemplateDefined($fieldMetadata)
                                    ? $fieldMetadata['template']
                                    : static::$mapTypeToTemplates[$fieldMetadata['type']];
                    $entityConfig['show']['fields'][$fieldName]['template'] = $template;

                    $entityConfig['show']['fields'][$fieldName]['template_options'] = $this->processTemplateOptions(
                        $fieldMetadata['type'], $fieldMetadata
                    );
                }
            }

            $backendConfig['entities'][$entityName] = $entityConfig;
        }

        return $backendConfig;
    }
private function processCustomShowTypes ( array $ backendConfig ) { foreach ( $ backendConfig [ 'entities' ] as $ entityName => $ entityConfig ) { foreach ( $ entityConfig [ 'show' ] [ 'fields' ] as $ fieldName => $ fieldMetadata ) { if ( \ array_key_exists ( $ fieldMetadata [ 'type' ] , static :: $ mapTypeToTemplates ) ) { $ template = $ this -> isFieldTemplateDefined ( $ fieldMetadata ) ? $ fieldMetadata [ 'template' ] : static :: $ mapTypeToTemplates [ $ fieldMetadata [ 'type' ] ] ; $ entityConfig [ 'show' ] [ 'fields' ] [ $ fieldName ] [ 'template' ] = $ template ; $ entityConfig [ 'show' ] [ 'fields' ] [ $ fieldName ] [ 'template_options' ] = $ this -> processTemplateOptions ( $ fieldMetadata [ 'type' ] , $ fieldMetadata ) ; } } $ backendConfig [ 'entities' ] [ $ entityName ] = $ entityConfig ; } return $ backendConfig ; }
Process custom types for SHOW view.

@param array $backendConfig

@return array
Process custom types for SHOW view .