public function PartyDefaultDataSet::getLabel in Party 7
Same name and namespace in other branches
- 8.2 includes/party.data.inc \PartyDefaultDataSet::getLabel()
Get the label of one of our attached entities.
Parameters
int $delta: The delta of the entity to render.
Return value
The text of the label.
1 method overrides PartyDefaultDataSet::getLabel()
- PartyUserDataSet::getLabel in modules/
party_user/ includes/ party_user.data.inc - Get the user label.
File
- includes/
party.data.inc, line 531 - Provides the default class for managing party - Attached entity relationships.
Class
- PartyDefaultDataSet
- Class PartyDefaultDataSet
Code
public function getLabel($delta) {
$entity = $this
->getEntity($delta);
$label = entity_label($this
->getDataInfo('entity type'), $entity);
return $label;
}