src/Contao/Dca/Builder/Legacy/LegacyDcaDataDefinitionBuilder.php
protected function parseSinglePropertyLabel(PropertyInterface $property, $label)
    {
        if (!$property->getLabel()) {
            if (\is_array($label)) {
                $lang        = $label;
                $label       = \reset($lang);
                $description = \next($lang);

                $property->setDescription($description);
            }

            $property->setLabel($label);
        }
    }
protected function parseSinglePropertyLabel(PropertyInterface $property, $label)
    {
        if (!$property->getLabel()) {
            if (\is_array($label)) {
                $lang        = $label;
                $label       = \reset($lang);
                $description = \next($lang);

                $property->setDescription($description);
            }

            $property->setLabel($label);
        }
    }
protected function parseSinglePropertyLabel ( PropertyInterface $ property , $ label ) { if ( ! $ property -> getLabel ( ) ) { if ( \ is_array ( $ label ) ) { $ lang = $ label ; $ label = \ reset ( $ lang ) ; $ description = \ next ( $ lang ) ; $ property -> setDescription ( $ description ) ; } $ property -> setLabel ( $ label ) ; } }
Parse the label of a single property.

@param PropertyInterface $property The property to parse the label for.
@param string|array      $label    The label value.

@return void
Parse the label of a single property .