public function CommentEventVariables::getEntity in Hook Event Dispatcher 8
Get the Entity.
Return value
\Drupal\Core\Entity\EntityInterface Entity.
Overrides AbstractEntityEventVariables::getEntity
File
- src/
Event/ Preprocess/ Variables/ CommentEventVariables.php, line 23
Class
- CommentEventVariables
- Class CommentEventVariables.
Namespace
Drupal\hook_event_dispatcher\Event\Preprocess\VariablesCode
public function getEntity() {
return $this
->getComment();
}