Inheritance: implements Neomerx\JsonApi\Contracts\Http\ResponsesInterface
Beispiel #1
0
 /**
  * @inheritdoc
  */
 protected function getResourceLocationUrl($resource)
 {
     if ($resource instanceof ModelsDataInterface) {
         $resource = $resource->getPaginatedData();
     }
     if ($resource instanceof PaginatedDataInterface) {
         $resource = $resource->getData();
     }
     return parent::getResourceLocationUrl($resource);
 }