foreach ($transition->
getFroms() as $from) { $fromEscaped =
$this->
escape($from);
foreach ($transition->
getTos() as $to) { $toEscaped =
$this->
escape($to);
$transitionEscapedWithStyle =
$this->
getTransitionEscapedWithStyle($workflowMetadata,
$transition,
$transitionEscaped);
$arrowColor =
$workflowMetadata->
getMetadata('arrow_color',
$transition);
$transitionColor = '';
if (null !==
$arrowColor) { $transitionColor =
$this->
getTransitionColor($arrowColor) ?? '';
} if ($this->
isWorkflowTransitionType()) { $transitionLabel = '';
// Add label only if it has a style
if ($transitionEscapedWithStyle !=
$transitionEscaped) { $transitionLabel = ":
$transitionEscapedWithStyle";
} $lines =
[ "{
$fromEscaped} -{
$transitionColor}-> {
$transitionEscaped}{
$transitionLabel}",
"