You are here

public function CommentEventVariables::getComment in Hook Event Dispatcher 3.x

Same name and namespace in other branches
  1. 8.2 modules/preprocess_event_dispatcher/src/Variables/CommentEventVariables.php \Drupal\preprocess_event_dispatcher\Variables\CommentEventVariables::getComment()

Get the comment.

Return value

\Drupal\comment\Entity\Comment The comment.

1 call to CommentEventVariables::getComment()
CommentEventVariables::getEntity in modules/preprocess_event_dispatcher/src/Variables/CommentEventVariables.php
Get the Entity.

File

modules/preprocess_event_dispatcher/src/Variables/CommentEventVariables.php, line 19

Class

CommentEventVariables
Class CommentEventVariables.

Namespace

Drupal\preprocess_event_dispatcher\Variables

Code

public function getComment() : CommentInterface {
  return $this->variables['comment'];
}