You are here

MailCacheNone.php in Simplenews 3.x

Same filename and directory in other branches
  1. 8.2 src/Mail/MailCacheNone.php
  2. 8 src/Mail/MailCacheNone.php

File

src/Mail/MailCacheNone.php
View source
<?php

namespace Drupal\simplenews\Mail;


/**
 * Cache implementation that does not cache anything at all.
 *
 * @ingroup mail
 */
class MailCacheNone extends MailCacheStatic {

  /**
   * {@inheritdoc}
   */
  public function isCacheable(MailInterface $mail, $group, $key) {
    return FALSE;
  }

}

Classes

Namesort descending Description
MailCacheNone Cache implementation that does not cache anything at all.