You are here

public function AbstractEntityEventVariables::getEntityType in Hook Event Dispatcher 8.2

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

Get the Entity type.

Return value

string Entity type.

1 method overrides AbstractEntityEventVariables::getEntityType()
CommentEventVariables::getEntityType in modules/preprocess_event_dispatcher/src/Variables/CommentEventVariables.php
Get the Entity type.

File

modules/preprocess_event_dispatcher/src/Variables/AbstractEntityEventVariables.php, line 26

Class

AbstractEntityEventVariables
Class EntityEventVariables.

Namespace

Drupal\preprocess_event_dispatcher\Variables

Code

public function getEntityType() : string {
  return $this
    ->get('theme_hook_original', '');
}