You are here

public function Organization::getPrimaryAddress in CRM Core 8.2

Same name and namespace in other branches
  1. 8.3 modules/crm_core_contact/src/Entity/Organization.php \Drupal\crm_core_contact\Entity\Organization::getPrimaryAddress()
  2. 8 modules/crm_core_contact/src/Entity/Organization.php \Drupal\crm_core_contact\Entity\Organization::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/Organization.php, line 117

Class

Organization
CRM Organization Entity Class.

Namespace

Drupal\crm_core_contact\Entity

Code

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