EckEntityEventVariables.php in Hook Event Dispatcher 8
File
src/Event/Preprocess/Variables/EckEntityEventVariables.php
View source
<?php
namespace Drupal\hook_event_dispatcher\Event\Preprocess\Variables;
class EckEntityEventVariables extends AbstractEntityEventVariables {
public function getEckEntity() {
return $this->variables['eck_entity'];
}
public function getEntity() {
return $this
->getEckEntity();
}
public function getEntityBundle() {
return $this->variables['bundle'];
}
public function getViewMode() {
return $this->variables['elements']['#view_mode'];
}
}