function hook_redhen_org_name_alter in RedHen CRM 8
Alter the display name for a org.
Parameters
string $name: The generated name.
Drupal\redhen_org\OrgInterface $org: The org whose name is being generated.
Return value
string
1 invocation of hook_redhen_org_name_alter()
- Org::getName in modules/
redhen_org/ src/ Entity/ Org.php
File
- modules/
redhen_org/ redhen_org.api.php, line 23 - Describes API functions for the RedHen Org module.
Code
function hook_redhen_org_name_alter(&$name, Drupal\redhen_org\OrgInterface $org) {
// Use ALL CAPS when displaying Redhen Org name.
return strtoupper($org
->get('name')->value);
}