ApiPlatform\Core\Hydra\Serializer\DocumentationNormalizer::getContext PHP Method

getContext() private method

Builds the JSON-LD context for the API documentation.
private getContext ( ) : array
return array
    private function getContext() : array
    {
        return ['@vocab' => $this->urlGenerator->generate('api_doc', ['_format' => self::FORMAT], UrlGeneratorInterface::ABS_URL) . '#', 'hydra' => ContextBuilderInterface::HYDRA_NS, 'rdf' => ContextBuilderInterface::RDF_NS, 'rdfs' => ContextBuilderInterface::RDFS_NS, 'xmls' => ContextBuilderInterface::XML_NS, 'owl' => ContextBuilderInterface::OWL_NS, 'domain' => ['@id' => 'rdfs:domain', '@type' => '@id'], 'range' => ['@id' => 'rdfs:range', '@type' => '@id'], 'subClassOf' => ['@id' => 'rdfs:subClassOf', '@type' => '@id'], 'expects' => ['@id' => 'hydra:expects', '@type' => '@id'], 'returns' => ['@id' => 'hydra:returns', '@type' => '@id']];
    }