public static function WorkflowConfigTransition::machineName in Workflow 7.2
Generate a machine name for a transition.
2 calls to WorkflowConfigTransition::machineName()
- Workflow::rebuildInternals in includes/
Entity/ Workflow.php - Rebuild internals that get saved separately.
- WorkflowFeaturesController::pack_transitions in ./
workflow.features.inc - "Packs" the transitions in the provided workflow into an export-friendly format.
File
- includes/
Entity/ WorkflowConfigTransition.php, line 122 - Contains workflow\includes\Entity\WorkflowConfigTransition. Contains workflow\includes\Entity\WorkflowConfigTransitionController.
Class
- WorkflowConfigTransition
- Implements a configurated Transition.
Code
public static function machineName($start_name, $end_name) {
$new_name = sprintf("%s_to_%s", $start_name, $end_name);
// Special case: replace parens in creation state transition names.
$new_name = str_replace("(creation)", "_creation", $new_name);
return $new_name;
}