interface EmailEventInterface in Commerce Email 8
Defines the interface for email events.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\commerce_email\Plugin\Commerce\EmailEvent\EmailEventInterface
Expanded class hierarchy of EmailEventInterface
All classes that implement EmailEventInterface
1 file declares its use of EmailEventInterface
File
- src/
Plugin/ Commerce/ EmailEvent/ EmailEventInterface.php, line 11
Namespace
Drupal\commerce_email\Plugin\Commerce\EmailEventView source
interface EmailEventInterface extends PluginInspectionInterface {
/**
* Gets the email event label.
*
* @return string
* The email event label.
*/
public function getLabel();
/**
* Gets the Symfony event name.
*
* @return string
* The Symfony event name.
*/
public function getEventName();
/**
* Gets the email event entity type ID.
*
* This is the entity type ID of the entity the event is fired for.
*
* @return string
* The email event entity type ID.
*/
public function getEntityTypeId();
/**
* Extracts the entity from the given event.
*
* @param \Symfony\Component\EventDispatcher\Event $event
* The event.
*
* @return \Drupal\Core\Entity\ContentEntityInterface
* The extracted entity.
*/
public function extractEntityFromEvent(Event $event);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EmailEventInterface:: |
public | function | Extracts the entity from the given event. | 3 |
EmailEventInterface:: |
public | function | Gets the email event entity type ID. | 1 |
EmailEventInterface:: |
public | function | Gets the Symfony event name. | 1 |
EmailEventInterface:: |
public | function | Gets the email event label. | 1 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |