Back to Installer class

Method getPath

public string
getPath
(mixed $name, mixed $default = null)
Get an installer path by name
Parameters
  • string $name Path name
  • string $default Default value
Returns
  • string Path
Since
  • 3.1
Class: Installer
Project: Joomla

Method getPath - Source code

/**
 * Get an installer path by name
 *
 * @param   string  $name     Path name
 * @param   string  $default  Default value
 *
 * @return  string  Path
 *
 * @since   3.1
 */
public function getPath($name, $default = null)
{
    return !empty($this->paths[$name]) ? $this->paths[$name] : $default;
}