getAttributeTranslation() public method

Translate the name of an attribute.
public getAttributeTranslation ( string $name ) : string
$name string The attribute name.
return string The translated attribute name, or the original attribute name if no translation was found.
Example #1
0
 /**
  * @param $name
  *
  * @return string
  * @deprecated This method will be removed in SSP 2.0. Please use \SimpleSAML\Locale\Language::getLanguage()
  * instead.
  */
 public function getAttributeTranslation($name)
 {
     return $this->translator->getAttributeTranslation($name);
 }