gridField, 200 ); foreach ($this->getRecords() as $comment) { array_push($ids, $comment->ID); $this->updateComment($comment); $response->addSuccessRecord($comment); } $response->setMessage(_t(__CLASS__ . '.CHANGES_APPLIED', 'Changes applied')); return $response; } /** * @param Comment $comment * * @return Comment */ abstract public function updateComment($comment); }