Flarum\Api\Controller\UpdateNotificationController::data PHP Method

data() protected method

protected data ( Psr\Http\Message\ServerRequestInterface $request, Document $document )
$request Psr\Http\Message\ServerRequestInterface
$document Tobscure\JsonApi\Document
    protected function data(ServerRequestInterface $request, Document $document)
    {
        $id = array_get($request->getQueryParams(), 'id');
        $actor = $request->getAttribute('actor');
        return $this->bus->dispatch(new ReadNotification($id, $actor));
    }
UpdateNotificationController