Back to Language class

Method setTransliterator

public callable
setTransliterator
(callable $function)
Set the transliteration function.
Parameters
  • callable $function Function name or the actual function.
Returns
  • callable The previous function.
Since
  • 1.7.0
Class: Language
Project: Joomla

Method setTransliterator - Source code

/**
 * Set the transliteration function.
 *
 * @param   callable  $function  Function name or the actual function.
 *
 * @return  callable  The previous function.
 *
 * @since   1.7.0
 */
public function setTransliterator(callable $function)
{
    $previous = $this->transliterator;
    $this->transliterator = $function;
    return $previous;
}