Rest/Field/RelationMapper.php
public function getMapping($contentTypeIdentifier, $fieldIdentifier)
    {
        $key = $contentTypeIdentifier . '.' . $fieldIdentifier;

        if (!isset($this->fieldMappings[$key])) {
            return false;
        }

        $identifier = explode('.', $this->fieldMappings[$key]);

        return array(
            'content' => $identifier[0],
            'field' => $identifier[1],
        );
    }
public function getMapping($contentTypeIdentifier, $fieldIdentifier)
    {
        $key = $contentTypeIdentifier . '.' . $fieldIdentifier;

        if (!isset($this->fieldMappings[$key])) {
            return false;
        }

        $identifier = explode('.', $this->fieldMappings[$key]);

        return array(
            'content' => $identifier[0],
            'field' => $identifier[1],
        );
    }
public function getMapping ( $ contentTypeIdentifier , $ fieldIdentifier ) { $ key = $ contentTypeIdentifier . '.' . $ fieldIdentifier ; if ( ! isset ( $ this -> fieldMappings [ $ key ] ) ) { return false ; } $ identifier = explode ( '.' , $ this -> fieldMappings [ $ key ] ) ; return array ( 'content' => $ identifier [ 0 ] , 'field' => $ identifier [ 1 ] , ) ; }
Get related mapping for specified content and field.

@param string $contentTypeIdentifier
@param string $fieldIdentifier

@return mixed Returns mathing mapping array or false if no matching mapping found
Get related mapping for specified content and field .