1 EntityReferenceSelectionHandlerViews.inc | public EntityReferenceSelectionHandlerViews::getLabel($entity) |
Implements EntityReferenceHandler::getLabel().
Overrides EntityReferenceSelectionHandlerInterface::getLabel
File
- core/
modules/ entityreference/ plugins/ selection/ EntityReferenceSelectionHandlerViews.inc, line 212
Class
- EntityReferenceSelectionHandlerViews
- Entity handler for Views.
Code
public function getLabel($entity) {
return entity_label($this->field['settings']['target_type'], $entity);
}