src/Forms/FormTemplateHelper.php
public function generateFieldID($field)
    {
        if ($form = $field->getForm()) {
            return sprintf(
                "%s_%s",
                $this->generateFormID($form),
                Convert::raw2htmlid($field->getName())
            );
        }

        return Convert::raw2htmlid($field->getName());
    }
public function generateFieldID($field)
    {
        if ($form = $field->getForm()) {
            return sprintf(
                "%s_%s",
                $this->generateFormID($form),
                Convert::raw2htmlid($field->getName())
            );
        }

        return Convert::raw2htmlid($field->getName());
    }
public function generateFieldID ( $ field ) { if ( $ form = $ field -> getForm ( ) ) { return sprintf ( "%s_%s" , $ this -> generateFormID ( $ form ) , Convert :: raw2htmlid ( $ field -> getName ( ) ) ) ; } return Convert :: raw2htmlid ( $ field -> getName ( ) ) ; }
Generate the field ID value

@param FormField $field
@return string
Generate the field ID value