CommentEventVariables.php in Hook Event Dispatcher 8
File
src/Event/Preprocess/Variables/CommentEventVariables.php
View source
<?php
namespace Drupal\hook_event_dispatcher\Event\Preprocess\Variables;
class CommentEventVariables extends AbstractEntityEventVariables {
public function getComment() {
return $this->variables['comment'];
}
public function getEntity() {
return $this
->getComment();
}
public function getEntityType() {
return 'comment';
}
public function getCommentedEntity() {
return $this->variables['commented_entity'];
}
}