public function disableIncludes(): void
    {
        if ($this->request->getQueryParam("include") !== null) {
            throw $this->exceptionFactory->createInclusionUnsupportedException($this->request);
        }
    }
public function disableIncludes(): void
    {
        if ($this->request->getQueryParam("include") !== null) {
            throw $this->exceptionFactory->createInclusionUnsupportedException($this->request);
        }
    }
public function disableIncludes ( ) : void { if ( $ this -> request -> getQueryParam ( "include" ) !== null ) { throw $ this -> exceptionFactory -> createInclusionUnsupportedException ( $ this -> request ) ; } }
Disables inclusion of related resources.

If the current request asks for inclusion of related resources, it throws an InclusionNotSupported exception.

@throws InclusionUnsupported|JsonApiExceptionInterface
Disables inclusion of related resources .