public function ContactEmailStorageInterface::loadValid in Contact Emails 8
Loads the valid contact emails for the given contact form.
Parameters
string $contact_form_id: The contact form ID to load emails for.
bool $enabled_only: Whether or not to filter by enabled emails only.
Return value
\Drupal\contact_emails\Entity\ContactEmailInterface[] The valid contact emails.
1 method overrides ContactEmailStorageInterface::loadValid()
- ContactEmailStorage::loadValid in src/
ContactEmailStorage.php - Loads the valid contact emails for the given contact form.
File
- src/
ContactEmailStorageInterface.php, line 36
Class
- ContactEmailStorageInterface
- Defines the interface for contact email storage.
Namespace
Drupal\contact_emailsCode
public function loadValid($contact_form_id, $enabled_only = FALSE);