public function CommentEventVariables::getCommentedEntity 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::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\VariablesCode
public function getCommentedEntity() : EntityInterface {
return $this->variables['commented_entity'];
}