src/CRUDlex/EntityDefinition.php
public function getFieldLabel($fieldName)
    {
        $result = $this->getField($fieldName, 'label_'.$this->locale, $this->getField($fieldName, 'label'));

        if ($result === null && array_key_exists($fieldName, $this->standardFieldLabels)) {
            $result = $this->standardFieldLabels[$fieldName];
        }

        if ($result === null) {
            $result = $fieldName;
        }

        return $result;
    }
public function getFieldLabel($fieldName)
    {
        $result = $this->getField($fieldName, 'label_'.$this->locale, $this->getField($fieldName, 'label'));

        if ($result === null && array_key_exists($fieldName, $this->standardFieldLabels)) {
            $result = $this->standardFieldLabels[$fieldName];
        }

        if ($result === null) {
            $result = $fieldName;
        }

        return $result;
    }
public function getFieldLabel ( $ fieldName ) { $ result = $ this -> getField ( $ fieldName , 'label_' . $ this -> locale , $ this -> getField ( $ fieldName , 'label' ) ) ; if ( $ result === null && array_key_exists ( $ fieldName , $ this -> standardFieldLabels ) ) { $ result = $ this -> standardFieldLabels [ $ fieldName ] ; } if ( $ result === null ) { $ result = $ fieldName ; } return $ result ; }
Gets the label of a field.

@param string $fieldName
the field name

@return string
the label of the field or the field name if no label is set in the CRUD
YAML
Gets the label of a field .