You are here

public function Individual::getPrimaryAddress in CRM Core 8.2

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

Gets the primary address.

Return value

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

File

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

Class

Individual
CRM Individual Entity Class.

Namespace

Drupal\crm_core_contact\Entity

Code

public function getPrimaryAddress() {
  return $this
    ->getPrimaryField('address');
}