Factory/JsFormValidatorFactory.php
protected function getElementId(Form $form)
    {
        /** @var Form $parent */
        $parent = $form->getParent();
        if (null !== $parent) {
            return $this->getElementId($parent) . '_' . $form->getName();
        } else {
            return $form->getName();
        }
    }
protected function getElementId(Form $form)
    {
        /** @var Form $parent */
        $parent = $form->getParent();
        if (null !== $parent) {
            return $this->getElementId($parent) . '_' . $form->getName();
        } else {
            return $form->getName();
        }
    }
protected function getElementId ( Form $ form ) { /** @var Form $parent */ $ parent = $ form -> getParent ( ) ; if ( null !== $ parent ) { return $ this -> getElementId ( $ parent ) . '_' . $ form -> getName ( ) ; } else { return $ form -> getName ( ) ; } }
Generate an Id for the element by merging the current element name
with all the parents names

@param Form $form

@return string
Generate an Id for the element by merging the current element name with all the parents names