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

Breadcrumb

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

function ClassMapGenerator::isAbsolutePath

Checks if the given path is absolute

Parameters

string $path:

Return value

bool

See also

Composer\Util\Filesystem::isAbsolutePath

1 call to ClassMapGenerator::isAbsolutePath()
ClassMapGenerator::scanPaths in vendor/composer/class-map-generator/src/ClassMapGenerator.php
Iterate over all files in the given directory searching for classes

File

vendor/composer/class-map-generator/src/ClassMapGenerator.php, line 274

Class

ClassMapGenerator
ClassMapGenerator

Namespace

Composer\ClassMapGenerator

Code

private static 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