Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. vfsStream.php

function vfsStream::url

prepends the scheme to the given URL

Parameters

string $path path to translate to vfsStream url:

Return value

string

1 call to vfsStream::url()
vfsStreamAbstractContent::url in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamAbstractContent.php
returns complete vfsStream url for this content

File

vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStream.php, line 68

Class

vfsStream
Some utility methods for vfsStream.

Namespace

org\bovigo\vfs

Code

public static function url($path) {
    return self::SCHEME . '://' . join('/', array_map('rawurlencode', explode('/', str_replace('\\', '/', $path))));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal