You are here

public function CommentEventVariables::getEntityType in Hook Event Dispatcher 3.x

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

Get the Entity type.

Return value

string Entity type.

Overrides AbstractEntityEventVariables::getEntityType

File

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

Class

CommentEventVariables
Class CommentEventVariables.

Namespace

Drupal\preprocess_event_dispatcher\Variables

Code

public function getEntityType() : string {
  return 'comment';
}