You are here

public function CommentEventVariables::getCommentedEntity in Hook Event Dispatcher 8.2

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

Get commented entity.

Return value

\Drupal\Core\Entity\EntityInterface Commented entity.

File

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

Class

CommentEventVariables
Class CommentEventVariables.

Namespace

Drupal\preprocess_event_dispatcher\Variables

Code

public function getCommentedEntity() : EntityInterface {
  return $this->variables['commented_entity'];
}