src/JsonHelper.php
protected function sendVerb(string $verb, Response $response, string $type, array $ids, array $extra = []): Response
    {
        $send = array_merge([], $extra);
        $send['success'] = true;
        $send['message'] = "Objects $verb successfully";
        $send['objects'] = array_map(function ($id) use ($type) {
            return ['type' => $type, 'id' => $id];
        }, $ids);
        return $this->sendJson($response, $send);
    }
protected function sendVerb(string $verb, Response $response, string $type, array $ids, array $extra = []): Response
    {
        $send = array_merge([], $extra);
        $send['success'] = true;
        $send['message'] = "Objects $verb successfully";
        $send['objects'] = array_map(function ($id) use ($type) {
            return ['type' => $type, 'id' => $id];
        }, $ids);
        return $this->sendJson($response, $send);
    }
Sends a generic notice that objects have been operated on.

@param string $verb  The verb
@param \Psr\Http\Message\ResponseInterface $response  The response
@param string $type  The entity type
@param array<mixed> $ids  The entity ids
@param array<string,mixed> $extra  Any extra data to serialize
@return \Psr\Http\Message\ResponseInterface  The JSON response