public function Organization::getPrimaryEmail in CRM Core 8
Same name and namespace in other branches
- 8.3 modules/crm_core_contact/src/Entity/Organization.php \Drupal\crm_core_contact\Entity\Organization::getPrimaryEmail()
- 8.2 modules/crm_core_contact/src/Entity/Organization.php \Drupal\crm_core_contact\Entity\Organization::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/ Organization.php, line 130
Class
- Organization
- CRM Organization Entity Class.
Namespace
Drupal\crm_core_contact\EntityCode
public function getPrimaryEmail() {
return $this
->getPrimaryField('email');
}