public function dispatchSortClause($sortClauseName, $direction, ParsingDispatcher $parsingDispatcher)
    {
        $mediaType = $this->getSortClauseMediaType($sortClauseName);

        return $parsingDispatcher->parse(array($sortClauseName => $direction), $mediaType);
    }
public function dispatchSortClause($sortClauseName, $direction, ParsingDispatcher $parsingDispatcher)
    {
        $mediaType = $this->getSortClauseMediaType($sortClauseName);

        return $parsingDispatcher->parse(array($sortClauseName => $direction), $mediaType);
    }
public function dispatchSortClause ( $ sortClauseName , $ direction , ParsingDispatcher $ parsingDispatcher ) { $ mediaType = $ this -> getSortClauseMediaType ( $ sortClauseName ) ; return $ parsingDispatcher -> parse ( array ( $ sortClauseName => $ direction ) , $ mediaType ) ; }
Dispatches parsing of a sort clause name + direction to its own parser.

@param string $sortClauseName
@param string $direction
@param \eZ\Publish\Core\REST\Common\Input\ParsingDispatcher $parsingDispatcher

@throws \eZ\Publish\Core\REST\Common\Exceptions\Parser

@return \eZ\Publish\API\Repository\Values\Content\Query\Criterion
Dispatches parsing of a sort clause name + direction to its own parser .