You are here

public function ContactEmails::rebuildCache in Contact Emails 8

Rebuild any caches.

This should be called whenever a contact email is created, updated, or deleted.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

File

src/ContactEmails.php, line 103

Class

ContactEmails
Class ContactEmails.

Namespace

Drupal\contact_emails

Code

public function rebuildCache() {

  // Force reload of the list of contact forms with emails.
  $this
    ->getContactFormsWithEmails(FALSE);
}