src/ViewCombination/InputScreenInformationBuilder.php
private function convertLegend(array $property, bool $trans, $condition, array &$legend, array &$result)
    {
        if (!empty($legend['properties'])) {
            $result['legend' . (\count($result) + 1)] = $legend;
        }
        $legend = [
            'label'      => $trans
                ? unserialize($property['legendtitle'], ['allowed_classes' => false])
                : ['' => $property['legendtitle']],
            'hide'       => (bool) $property['legendhide'],
            'properties' => [],
            'condition' => $condition($property)
        ];
    }
private function convertLegend(array $property, bool $trans, $condition, array &$legend, array &$result)
    {
        if (!empty($legend['properties'])) {
            $result['legend' . (\count($result) + 1)] = $legend;
        }
        $legend = [
            'label'      => $trans
                ? unserialize($property['legendtitle'], ['allowed_classes' => false])
                : ['' => $property['legendtitle']],
            'hide'       => (bool) $property['legendhide'],
            'properties' => [],
            'condition' => $condition($property)
        ];
    }
Convert a legend property.

@param array    $property  The property information to convert.
@param bool     $trans     Flag if the MetaModel is translated.
@param callable $condition The condition transformer.
@param array    $legend    The current legend information.
@param array    $result    The resulting information.

@return void