if ($marking?->
has($place)) { $attributes['color'
] = '#FF0000';
$attributes['shape'
] = 'doublecircle';
} $backgroundColor =
$workflowMetadata->
getMetadata('bg_color',
$place);
if (null !==
$backgroundColor) { $attributes['style'
] = 'filled';
$attributes['fillcolor'
] =
$backgroundColor;
} if ($withMetadata) { $attributes['metadata'
] =
$workflowMetadata->
getPlaceMetadata($place);
} $label =
$workflowMetadata->
getMetadata('label',
$place);
if (null !==
$label) { $attributes['name'
] =
$label;
if ($withMetadata) { // Don't include label in metadata if already used as name
unset($attributes['metadata'
]['label'
]);
} } $places[$place] =
[ 'attributes' =>
$attributes,
];