protected function getGroupLabel(FamilyInterface $family, array $groupPath, $level)
    {
        $fallBack = isset($groupPath[$level]) ? $groupPath[$level] : null;
        $fieldsetPath = $this->getFieldsetPath($groupPath, $level);
        $transKeys = [
            "eav.family.{$family->getCode()}.group.{$fieldsetPath}.label",
            "eav.group.{$fieldsetPath}.label",
        ];

        return ucfirst($this->tryTranslate($transKeys, [], $fallBack));
    }
protected function getGroupLabel(FamilyInterface $family, array $groupPath, $level)
    {
        $fallBack = isset($groupPath[$level]) ? $groupPath[$level] : null;
        $fieldsetPath = $this->getFieldsetPath($groupPath, $level);
        $transKeys = [
            "eav.family.{$family->getCode()}.group.{$fieldsetPath}.label",
            "eav.group.{$fieldsetPath}.label",
        ];

        return ucfirst($this->tryTranslate($transKeys, [], $fallBack));
    }
protected function getGroupLabel ( FamilyInterface $ family , array $ groupPath , $ level ) { $ fallBack = isset ( $ groupPath [ $ level ] ) ? $ groupPath [ $ level ] : null ; $ fieldsetPath = $ this -> getFieldsetPath ( $ groupPath , $ level ) ; $ transKeys = [ "eav.family.{$family->getCode()}.group.{$fieldsetPath}.label" , "eav.group.{$fieldsetPath}.label" , ] ; return ucfirst ( $ this -> tryTranslate ( $ transKeys , [ ] , $ fallBack ) ) ; }
Use label from formOptions or use translation or automatically create human readable one

@param FamilyInterface $family
@param array           $groupPath
@param int             $level

@throws \InvalidArgumentException

@return string
Use label from formOptions or use translation or automatically create human readable one