/** * Compiles comment data into a format Akismet accepts. * * @param CommentInterface $comment * @return array */ protected function getCommentData(CommentInterface $comment) { $data = array('comment_type' => 'comment', 'comment_content' => $comment->getBody()); $data['comment_author'] = $comment->getAuthorName(); return $data; }