protected function getTitle($rule, $params = array())
    {
        $params['attribute'] = $this->field->getOption('label');

        return $this->formHelper->getTranslator()->trans('validation.' . $rule, $params);
    }
protected function getTitle($rule, $params = array())
    {
        $params['attribute'] = $this->field->getOption('label');

        return $this->formHelper->getTranslator()->trans('validation.' . $rule, $params);
    }
protected function getTitle ( $ rule , $ params = array ( ) ) { $ params [ 'attribute' ] = $ this -> field -> getOption ( 'label' ) ; return $ this -> formHelper -> getTranslator ( ) -> trans ( 'validation.' . $ rule , $ params ) ; }
Get the title, used for validating a rule.

@param  string $rule
@param  array  $params
@return string
Get the title used for validating a rule .