Respond to a comment being published by a moderator.
Drupal\comment\Comment $comment: The comment the action is being performed on.
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_comment_publish(Drupal\comment\Comment $comment) {
drupal_set_message(t('Comment: @subject has been published', array(
'@subject' => $comment->subject->value,
)));
}