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

Breadcrumb

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

function vfsStream::path

restores the path from the url

Parameters

string $url vfsStream url to translate into path:

Return value

string

8 calls to vfsStream::path()
vfsStreamWrapper::dir_opendir in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php
opens a directory
vfsStreamWrapper::mkdir in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php
creates a new directory
vfsStreamWrapper::rename in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php
rename from one path to another
vfsStreamWrapper::rmdir in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php
removes a directory
vfsStreamWrapper::stream_metadata in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php
sets metadata like owner, user or permissions

... See full list

File

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

Class

vfsStream
Some utility methods for vfsStream.

Namespace

org\bovigo\vfs

Code

public static function path($url) {
    // remove line feeds and trailing whitespaces and path separators
    $path = trim($url, " \t\r\n\x00\v/\\");
    $path = substr($path, strlen(self::SCHEME . '://'));
    $path = str_replace('\\', '/', $path);
    // replace double slashes with single slashes
    $path = str_replace('//', '/', $path);
    return rawurldecode($path);
}

API Navigation

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