public function getErrorTemplate(string $field, string $ruleSlug) : string
    {
        if (isset($this->fieldTemplates[$field][$ruleSlug])) {
            return $this->fieldTemplates[$field][$ruleSlug];
        }

        if (isset($this->globalTemplates[$ruleSlug])) {
            return $this->globalTemplates[$ruleSlug];
        }

        return '';
    }
public function getErrorTemplate(string $field, string $ruleSlug) : string
    {
        if (isset($this->fieldTemplates[$field][$ruleSlug])) {
            return $this->fieldTemplates[$field][$ruleSlug];
        }

        if (isset($this->globalTemplates[$ruleSlug])) {
            return $this->globalTemplates[$ruleSlug];
        }

        return '';
    }
public function getErrorTemplate ( string $ field , string $ ruleSlug ) : string { if ( isset ( $ this -> fieldTemplates [ $ field ] [ $ ruleSlug ] ) ) { return $ this -> fieldTemplates [ $ field ] [ $ ruleSlug ] ; } if ( isset ( $ this -> globalTemplates [ $ ruleSlug ] ) ) { return $ this -> globalTemplates [ $ ruleSlug ] ; } return '' ; }
Gets the error template for a field and rule

@param string $field The field whose template we want
@param string $ruleSlug The rule slug whose template we want
@return string The error template
Gets the error template for a field and rule