You are here

public function AbstractEntityEventVariables::getEntityBundle in Hook Event Dispatcher 3.x

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

Get the Entity bundle.

Return value

string Entity bundle.

1 method overrides AbstractEntityEventVariables::getEntityBundle()
EckEntityEventVariables::getEntityBundle in modules/preprocess_event_dispatcher/src/Variables/EckEntityEventVariables.php
Get the Entity bundle.

File

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

Class

AbstractEntityEventVariables
Class EntityEventVariables.

Namespace

Drupal\preprocess_event_dispatcher\Variables

Code

public function getEntityBundle() : string {
  return $this
    ->getEntity()
    ->bundle();
}