You are here

public function OaTeams_SelectionHandler::getLabel in Open Atrium Core 7.2

Implements EntityReferenceHandler::getLabel().

Overrides EntityReference_SelectionHandler::getLabel

1 call to OaTeams_SelectionHandler::getLabel()
OaTeams_SelectionHandler::getReferencableEntities in modules/oa_teams/plugins/entityreference_selection/OaTeams_SelectionHandler.class.php
Implements EntityReferenceHandler::getReferencableEntities().

File

modules/oa_teams/plugins/entityreference_selection/OaTeams_SelectionHandler.class.php, line 118
Contains the OaTeams_SelectionHandler class.

Class

OaTeams_SelectionHandler
An EntityReference selection plugin for Open Atrium Teams.

Code

public function getLabel($entity) {
  return entity_access('view', 'node', $entity) ? entity_label('node', $entity) : t('- Restricted access -');
}