You are here

function akamai_get_notification_email in Akamai 8

Same name and namespace in other branches
  1. 8.2 akamai.module \akamai_get_notification_email()
  2. 6.2 akamai.module \akamai_get_notification_email()
  3. 6 akamai.module \akamai_get_notification_email()
  4. 7 akamai.module \akamai_get_notification_email()

Get the email address for notification.

2 calls to akamai_get_notification_email()
akamai_clear_url in ./akamai.module
Clear a URL from Akamai. Clears node/id and any url aliases.
CacheControlForm::buildForm in lib/Drupal/akamai/Form/CacheControlForm.php
Form constructor.

File

./akamai.module, line 186
akamai.module Integration with the Akamai CDN Cache Control Web Service.

Code

function akamai_get_notification_email() {
  $akamai_config = \Drupal::config('akamai.settings');
  $notification = $akamai_config
    ->get('email');
  if (empty($notification)) {
    global $user;
    $notification = \Drupal::currentUser()
      ->getEmail();
  }
  return $notification;
}