You are here

public function CommentEventVariables::getComment in Hook Event Dispatcher 8

Get the comment.

Return value

\Drupal\comment\Entity\Comment The comment.

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

File

src/Event/Preprocess/Variables/CommentEventVariables.php, line 16

Class

CommentEventVariables
Class CommentEventVariables.

Namespace

Drupal\hook_event_dispatcher\Event\Preprocess\Variables

Code

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