You are here

public function EntityViewAlterEvent::getDisplay in Hook Event Dispatcher 3.x

Same name and namespace in other branches
  1. 8.2 modules/core_event_dispatcher/src/Event/Entity/EntityViewAlterEvent.php \Drupal\core_event_dispatcher\Event\Entity\EntityViewAlterEvent::getDisplay()

Get the display.

Return value

\Drupal\Core\Entity\Display\EntityViewDisplayInterface The display.

File

modules/core_event_dispatcher/src/Event/Entity/EntityViewAlterEvent.php, line 63

Class

EntityViewAlterEvent
Class EntityViewAlterEventEvent.

Namespace

Drupal\core_event_dispatcher\Event\Entity

Code

public function getDisplay() : EntityViewDisplayInterface {
  return $this->display;
}