You are here

public function CommentEventVariables::getCommentedEntity in Hook Event Dispatcher 8

Get commented entity.

Return value

\Drupal\Core\Entity\EntityInterface Commented entity.

File

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

Class

CommentEventVariables
Class CommentEventVariables.

Namespace

Drupal\hook_event_dispatcher\Event\Preprocess\Variables

Code

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