WP_CLI

Configurator::absolutize()private staticWP-CLI 1.0

Make a path absolute.

Method of the class: Configurator{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = Configurator::absolutize( $path, $base );
$path(string) (required) (passed by reference — &)
Path to file.
$base(string) (required)
Base path to prepend.

Configurator::absolutize() code WP-CLI 2.8.0-alpha

private static function absolutize( &$path, $base ) {
	if ( ! empty( $path ) && ! Utils\is_path_absolute( $path ) ) {
		$path = $base . DIRECTORY_SEPARATOR . $path;
	}
}