You are here

public function EmailEventInterface::extractEntityFromEvent in Commerce Email 8

Extracts the entity from the given event.

Parameters

\Symfony\Component\EventDispatcher\Event $event: The event.

Return value

\Drupal\Core\Entity\ContentEntityInterface The extracted entity.

3 methods override EmailEventInterface::extractEntityFromEvent()
CheckoutCompletionRegister::extractEntityFromEvent in src/Plugin/Commerce/EmailEvent/CheckoutCompletionRegister.php
Extracts the entity from the given event.
OrderPaid::extractEntityFromEvent in src/Plugin/Commerce/EmailEvent/OrderPaid.php
Extracts the entity from the given event.
OrderPlaced::extractEntityFromEvent in src/Plugin/Commerce/EmailEvent/OrderPlaced.php
Extracts the entity from the given event.

File

src/Plugin/Commerce/EmailEvent/EmailEventInterface.php, line 48

Class

EmailEventInterface
Defines the interface for email events.

Namespace

Drupal\commerce_email\Plugin\Commerce\EmailEvent

Code

public function extractEntityFromEvent(Event $event);