The function will always return an absolute path unless the option is not set. It will then return the default
value.
It checks if the value starts with a slash, and prefixes it with the value from getBaseDir if it doesn't.
public getPathValue ( string $name, string | null $default = null ) : string | null | ||
$name | string | Name of the configuration option. |
$default | string | null | Default value of the configuration option. This parameter will default to null if not specified. |
Результат | string | null | The path configuration option with name $name, or $default if the option was not found. |