public function Individual::getPrimaryAddress in CRM Core 8.2
Same name and namespace in other branches
- 8.3 modules/crm_core_contact/src/Entity/Individual.php \Drupal\crm_core_contact\Entity\Individual::getPrimaryAddress()
- 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\EntityCode
public function getPrimaryAddress() {
return $this
->getPrimaryField('address');
}