CodeExplorer getColorId example
if (isset($options['title'
])) { $code[] = "title {
$options['title'
]}";
} if (isset($options['name'
])) { $code[] = "title {
$options['name'
]}";
} // Add style from nodes
foreach ($definition->
getPlaces() as $place) { $backgroundColor =
$workflowMetadata->
getMetadata('bg_color',
$place);
if (null !==
$backgroundColor) { $key = 'BackgroundColor<<'.
$this->
getColorId($backgroundColor).'>>';
$options['skinparams'
]['state'
][$key] =
$backgroundColor;
} } if (isset($options['skinparams'
]) && \
is_array($options['skinparams'
])) { foreach ($options['skinparams'
] as $skinparamKey =>
$skinparamValue) { if (!
$this->
isWorkflowTransitionType() && 'agent' ===
$skinparamKey) { continue;
} if (!\
is_array($skinparamValue)) {