public function Org::getName in RedHen CRM 8
1 call to Org::getName()
- Org::label in modules/
redhen_org/ src/ Entity/ Org.php - Gets the label of the entity.
File
- modules/
redhen_org/ src/ Entity/ Org.php, line 78
Class
- Org
- Defines the Organization entity.
Namespace
Drupal\redhen_org\EntityCode
public function getName() {
$name = $this
->get('name')->value;
// Allow other modules to alter the name of the org.
\Drupal::moduleHandler()
->alter('redhen_org_name', $name, $this);
return $name;
}