You are here

protected function WorkflowConfigTransition::defaultLabel in Workflow 7.2

Defines the entity label if the 'entity_class_label' callback is used.

Specify 'entity_class_label' as 'label callback' in hook_entity_info() to let the entity label point to this method. Override this in order to implement a custom default label.

Overrides Entity::defaultLabel

File

includes/Entity/WorkflowConfigTransition.php, line 53
Contains workflow\includes\Entity\WorkflowConfigTransition. Contains workflow\includes\Entity\WorkflowConfigTransitionController.

Class

WorkflowConfigTransition
Implements a configurated Transition.

Code

protected function defaultLabel() {
  return isset($this->label) ? t('@label', array(
    '@label' => $this->label,
  )) : '';
}