You are here

public function EntityReference_SelectionHandler_Views::getLabel in Entity reference 7

Implements EntityReferenceHandler::getLabel().

Overrides EntityReference_SelectionHandler::getLabel

File

plugins/selection/EntityReference_SelectionHandler_Views.class.php, line 179

Class

EntityReference_SelectionHandler_Views
Entity handler for Views.

Code

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