public function ContactEmailStorage::hasContactEmails in Contact Emails 8
Checks if there are contact emails for the provided form.
Parameters
string $contact_form_id: The contact form ID to check for.
bool $enabled_only: Whether or not to filter by enabled emails only.
Return value
bool TRUE if there are contact emails defined, FALSE otherwise.
Overrides ContactEmailStorageInterface::hasContactEmails
File
- src/
ContactEmailStorage.php, line 15
Class
- ContactEmailStorage
- Defines the contact email storage.
Namespace
Drupal\contact_emailsCode
public function hasContactEmails($contact_form_id, $enabled_only = FALSE) {
return !empty($this
->loadValid($contact_form_id, $enabled_only));
}