You are here

public function PartyDefaultDataSet::getLabel in Party 8.2

Same name and namespace in other branches
  1. 7 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.

3 methods override PartyDefaultDataSet::getLabel()
PartySubscriptionSettingsDataSet::getLabel in modules/party_simplenews/party_simplenews.module
Get the label of one of our attached entities.
PartySubscriptionSettingsDataSet::getLabel in modules/party_simplenews/includes/party_simplenews.data.inc
Get the label of one of our attached entities.
PartyUserDataSet::getLabel in modules/party_user/includes/party_user.data.inc
Get the user label.

File

includes/party.data.inc, line 371
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;
}