You are here

public function PreSendPdfEvent::getEntity in Entity Print 8

Gets the entity that is being printed to PDF.

Return value

\Drupal\Core\Entity\EntityInterface The content entity.

File

src/Event/PreSendPdfEvent.php, line 37

Class

PreSendPdfEvent
The PreSendPdfEvent class.

Namespace

Drupal\entity_print\Event

Code

public function getEntity() {
  return $this->entity;
}