You are here

public function Contact::getEmail in RedHen CRM 8

2 calls to Contact::getEmail()
Contact::postSave in modules/redhen_contact/src/Entity/Contact.php
Acts on a saved entity before the insert or update hook is invoked.
Contact::preSave in modules/redhen_contact/src/Entity/Contact.php
Acts on an entity before the presave hook is invoked.

File

modules/redhen_contact/src/Entity/Contact.php, line 107

Class

Contact
Defines the Contact entity.

Namespace

Drupal\redhen_contact\Entity

Code

public function getEmail() {
  return $this
    ->get('email')->value;
}