Inpsyde\MultilingualPress\Asset\DebugAwareAssetURL::from_location PHP Method

from_location() public static method

Returns a new URL object, instantiated according to the given location object.
Since: 3.0.0
public static from_location ( AssetLocation $location ) : static
$location AssetLocation Asset location object.
return static URL object.
    public static function from_location(AssetLocation $location)
    {
        return new static($location->file(), $location->path(), $location->url());
    }