src/DataFormatter.php
public function getFieldAlias($className, $field)
    {
        $apiMapping = $this->getApiMapping($className);
        $apiMapping = array_flip($apiMapping);
        return $this->getMappedKey($apiMapping, $field);
    }
public function getFieldAlias($className, $field)
    {
        $apiMapping = $this->getApiMapping($className);
        $apiMapping = array_flip($apiMapping);
        return $this->getMappedKey($apiMapping, $field);
    }
public function getFieldAlias ( $ className , $ field ) { $ apiMapping = $ this -> getApiMapping ( $ className ) ; $ apiMapping = array_flip ( $ apiMapping ) ; return $ this -> getMappedKey ( $ apiMapping , $ field ) ; }
Get a DataObject Field's Alias
defaults to the fieldname

@param string $className
@param string $field
@return string
Get a DataObject Field s Alias defaults to the fieldname