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

Breadcrumb

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

function vfsStreamAbstractContent::path

returns path to this content

@since 1.2.0

Return value

string

Overrides vfsStreamContent::path

3 calls to vfsStreamAbstractContent::path()
vfsStreamAbstractContent::url in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamAbstractContent.php
returns complete vfsStream url for this content
vfsStreamDirectory::addChild in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamDirectory.php
adds child to the directory
vfsStreamDirectory::setParentPath in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamDirectory.php
sets parent path

File

vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamAbstractContent.php, line 399

Class

vfsStreamAbstractContent
Base stream contents container.

Namespace

org\bovigo\vfs

Code

public function path() {
    if (null === $this->parentPath) {
        return $this->name;
    }
    return $this->parentPath . '/' . $this->name;
}

API Navigation

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