WP_CLI
Configurator::absolutize
Make a path absolute.
Method of the class: Configurator{}
No Hooks.
Returns
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() Configurator::absolutize code WP-CLI 2.13.0-alpha
private static function absolutize( &$path, $base ) {
if ( ! empty( $path ) && ! Utils\is_path_absolute( $path ) ) {
$path = $base . DIRECTORY_SEPARATOR . $path;
}
}