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

Breadcrumb

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

function Filesystem::isAbsolutePath

Same name in this branch
  1. 11.1.x vendor/symfony/filesystem/Filesystem.php \Symfony\Component\Filesystem\Filesystem::isAbsolutePath()

Checks if the given path is absolute

Return value

bool

2 calls to Filesystem::isAbsolutePath()
Filesystem::findShortestPath in vendor/composer/composer/src/Composer/Util/Filesystem.php
Returns the shortest path from $from to $to
Filesystem::findShortestPathCode in vendor/composer/composer/src/Composer/Util/Filesystem.php
Returns PHP code that, when executed in $from, will return the path to $to

File

vendor/composer/composer/src/Composer/Util/Filesystem.php, line 565

Class

Filesystem
@author Jordi Boggiano <j.boggiano@seld.be> @author Johannes M. Schmitt <schmittjoh@gmail.com>

Namespace

Composer\Util

Code

public function isAbsolutePath(string $path) {
    return strpos($path, '/') === 0 || substr($path, 1, 1) === ':' || strpos($path, '\\\\') === 0;
}

API Navigation

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