public function getFormLabel($domain=null)
    {
        $form = $this->getForm();
        $translationDomain = !is_null($domain) ? $domain : 'forms';
        $translator = $form->getTranslator();

        $id = $form->getName();
        if ($form instanceof FormCollectionInterface) {
            if (!is_int($this->getEntityContainer()->getName())) {
                $id .= '.' . $this->getEntityContainer()->getName();
            }
        }
        $id .= '.' . $this->getName();

        return $translator->trans($id, array(), $translationDomain);
    }
public function getFormLabel($domain=null)
    {
        $form = $this->getForm();
        $translationDomain = !is_null($domain) ? $domain : 'forms';
        $translator = $form->getTranslator();

        $id = $form->getName();
        if ($form instanceof FormCollectionInterface) {
            if (!is_int($this->getEntityContainer()->getName())) {
                $id .= '.' . $this->getEntityContainer()->getName();
            }
        }
        $id .= '.' . $this->getName();

        return $translator->trans($id, array(), $translationDomain);
    }
public function getFormLabel ( $ domain = null ) { $ form = $ this -> getForm ( ) ; $ translationDomain = ! is_null ( $ domain ) ? $ domain : 'forms' ; $ translator = $ form -> getTranslator ( ) ; $ id = $ form -> getName ( ) ; if ( $ form instanceof FormCollectionInterface ) { if ( ! is_int ( $ this -> getEntityContainer ( ) -> getName ( ) ) ) { $ id .= '.' . $ this -> getEntityContainer ( ) -> getName ( ) ; } } $ id .= '.' . $ this -> getName ( ) ; return $ translator -> trans ( $ id , array ( ) , $ translationDomain ) ; }
return prepared property label

@param     string    $domain     optional translation domain
@return    string            property name
return prepared property label