src/DataFormatter.php
protected function getApiMapping($className)
    {
        $apiMapping = Config::inst()->get($className, 'api_field_mapping');
        if ($apiMapping && is_array($apiMapping)) {
            return $apiMapping;
        }
        return [];
    }
protected function getApiMapping($className)
    {
        $apiMapping = Config::inst()->get($className, 'api_field_mapping');
        if ($apiMapping && is_array($apiMapping)) {
            return $apiMapping;
        }
        return [];
    }
protected function getApiMapping ( $ className ) { $ apiMapping = Config :: inst ( ) -> get ( $ className , 'api_field_mapping' ) ; if ( $ apiMapping && is_array ( $ apiMapping ) ) { return $ apiMapping ; } return [ ] ; }
Get the 'api_field_mapping' config value for a class
or return an empty array

@param string $className
@return string[]|array
Get the api_field_mapping config value for a class or return an empty array