Back to Language class

Method getPaths

public array
getPaths
(mixed $extension = null)
Get a list of language files that have been loaded.
Parameters
  • string $extension An optional extension name.
Returns
  • array
Since
  • 1.7.0
Class: Language
Project: Joomla

Method getPaths - Source code

/**
 * Get a list of language files that have been loaded.
 *
 * @param   string  $extension  An optional extension name.
 *
 * @return  array
 *
 * @since   1.7.0
 */
public function getPaths($extension = null)
{
    if (isset($extension)) {
        if (isset($this->paths[$extension])) {
            return $this->paths[$extension];
        }
        return [];
    }
    return $this->paths;
}