You are here

protected function EasyEmailStorage::getEventName in Easy Email 8

Same name and namespace in other branches
  1. 2.0.x src/EasyEmailStorage.php \Drupal\easy_email\EasyEmailStorage::getEventName()

Gets the event name for the given hook.

Created using the the entity type's module name and ID.

Parameters

string $hook: One of 'load', 'create', 'presave', 'insert', 'update', 'predelete', 'delete', 'translation_insert', 'translation_delete'.

Return value

string The event name.

1 call to EasyEmailStorage::getEventName()
EasyEmailStorage::invokeHook in src/EasyEmailStorage.php
Invokes a hook on behalf of the entity.

File

src/EasyEmailStorage.php, line 153

Class

EasyEmailStorage
Defines the storage handler class for Email entities.

Namespace

Drupal\easy_email

Code

protected function getEventName($hook) {
  return $this->entityType
    ->getProvider() . '.' . $this->entityType
    ->id() . '.' . $hook;
}