You are here

public function Individual::getPrimaryEmail in CRM Core 8

Same name and namespace in other branches
  1. 8.3 modules/crm_core_contact/src/Entity/Individual.php \Drupal\crm_core_contact\Entity\Individual::getPrimaryEmail()
  2. 8.2 modules/crm_core_contact/src/Entity/Individual.php \Drupal\crm_core_contact\Entity\Individual::getPrimaryEmail()

Gets the primary email.

Return value

\Drupal\Core\Field\FieldItemListInterface|\Drupal\Core\TypedData\TypedDataInterface The email property object.

File

modules/crm_core_contact/src/Entity/Individual.php, line 131

Class

Individual
CRM Individual Entity Class.

Namespace

Drupal\crm_core_contact\Entity

Code

public function getPrimaryEmail() {
  return $this
    ->getPrimaryField('email');
}