You are here

public function RedhenGroupSelectionHandler::getLabel in RedHen CRM 7

Return the label of a given entity.

Overrides EntityReference_SelectionHandler::getLabel

1 call to RedhenGroupSelectionHandler::getLabel()
RedhenGroupSelectionHandler::getReferencableEntities in modules/redhen_org_group/plugins/selection/RedhenGroupSelectionHandler.class.php
Return a list of referencable entities.

File

modules/redhen_org_group/plugins/selection/RedhenGroupSelectionHandler.class.php, line 84

Class

RedhenGroupSelectionHandler
RedHenGroup selection handler.

Code

public function getLabel($entity) {
  return entity_label($this->field['settings']['target_type'], $entity);
}