protected function WorkflowTransition::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/ WorkflowTransition.php, line 148 - Contains workflow\includes\Entity\WorkflowTransition. Contains workflow\includes\Entity\WorkflowTransitionController.
Class
- WorkflowTransition
- Implements an actual Transition.
Code
protected function defaultLabel() {
// @todo; Should return title of WorkflowConfigTransition. Make it a superclass??
return t('Workflow transition !hid', array(
'!hid' => 3,
));
}