eZ\Bundle\EzPublishRestBundle\Features\Context\SubContext\EzRest::decomposeObjectHeader PHP Method

decomposeObjectHeader() protected method

Decompose the header to get only the object type of the accept/conten-type headers.
protected decomposeObjectHeader ( $header ) : false | string
return false | string Decomposed string if found, false other wise
    protected function decomposeObjectHeader($header)
    {
        preg_match('/application\\/vnd\\.ez\\.api\\.(.*)\\+(?:json|xml)/i', $header, $match);
        return empty($match) ? false : $match[1];
    }