protected function formatLabel(Definition
$definition, string
$withMetadata, array
$options): string
{ $currentLabel =
$options['label'
] ?? '';
if (!
$withMetadata) { // Only currentLabel to handle. If null, will be translated to empty string
return sprintf('"%s"',
$this->
escape($currentLabel));
} $workflowMetadata =
$definition->
getMetadataStore()->
getWorkflowMetadata();
if ('' ===
$currentLabel) { // Only metadata to handle
return sprintf('<%s>',
$this->
addMetadata($workflowMetadata, false
));
} // currentLabel and metadata to handle
return sprintf('<<B>%s</B>%s>',
$this->
escape($currentLabel),
$this->
addMetadata($workflowMetadata));
} private function addOptions(array
$options): string
{