/** * 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 */ 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); } }