You are here

public function AbstractEntityEventVariables::getEntityType in Hook Event Dispatcher 8

Get the Entity type.

Return value

string Entity type.

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

File

src/Event/Preprocess/Variables/AbstractEntityEventVariables.php, line 24

Class

AbstractEntityEventVariables
Class EntityEventVariables.

Namespace

Drupal\hook_event_dispatcher\Event\Preprocess\Variables

Code

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