action map. * * @var array */ private static $url_handlers = array( 'unLink' => 'unLink', ); /** * Unlink the selected records passed from the unlink bulk action. * * @param HTTPRequest $request * * @return HTTPResponse List of affected records ID */ public function unLink(HTTPRequest $request) { $ids = $this->getRecordIDList(); $this->gridField->list->removeMany($ids); $response = new HTTPResponse(Convert::raw2json(array( 'done' => true, 'records' => $ids, ))); $response->addHeader('Content-Type', 'text/json'); return $response; } }