You are here

public function Individual::getSex in CRM Core 8.2

Gets sex of individual.

Return value

string Sex of individual.

Overrides IndividualInterface::getSex

File

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

Class

Individual
CRM Individual Entity Class.

Namespace

Drupal\crm_core_contact\Entity

Code

public function getSex() {
  return $this
    ->get('sex')->value;
}