You are here

public function DeployManagerEntitiesEntity::label in Deploy - Content Staging 7.3

Returns the label of the entity.

Modules may alter the label by specifying another 'label callback' using hook_entity_info_alter().

Overrides Entity::label

See also

entity_label()

File

includes/DeployManagerEntitiesEntity.inc, line 16
Developer Manager Entities Entity.

Class

DeployManagerEntitiesEntity
Developer Manager Entities Entity class.

Code

public function label() {
  $entity = deploy_plan_entity_load($this->entity_type, $this->entity_id, $this->revision_id);
  $label = deploy_plan_entity_label($this->entity_type, $entity, $this->revision_id);
  return $label;
}