FluidTYPO3\Flux\Form\Field\Select::getLabelPropertyName PHP 메소드

getLabelPropertyName() 보호된 메소드

protected getLabelPropertyName ( string $table, string $type ) : string
$table string
$type string
리턴 string
    protected function getLabelPropertyName($table, $type)
    {
        $typoScript = $this->getConfigurationService()->getAllTypoScript();
        if (TRUE === isset($typoScript['config']['tx_extbase']['persistence']['classes'][$type])) {
            $mapping = $typoScript['config']['tx_extbase']['persistence']['classes'][$type];
            if (TRUE === isset($mapping['mapping']['tableName'])) {
                $table = $mapping['mapping']['tableName'];
            }
        }
        $labelField = $GLOBALS['TCA'][$table]['ctrl']['label'];
        $propertyName = GeneralUtility::underscoredToLowerCamelCase($labelField);
        return $propertyName;
    }