public function CommentEventVariables::getComment in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 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\VariablesCode
public function getComment() : CommentInterface {
return $this->variables['comment'];
}