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

Breadcrumb

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

function FilesystemLoader::isAbsolutePath

3 calls to FilesystemLoader::isAbsolutePath()
FilesystemLoader::addPath in vendor/twig/twig/src/Loader/FilesystemLoader.php
FilesystemLoader::findTemplate in vendor/twig/twig/src/Loader/FilesystemLoader.php
FilesystemLoader::prependPath in vendor/twig/twig/src/Loader/FilesystemLoader.php

File

vendor/twig/twig/src/Loader/FilesystemLoader.php, line 280

Class

FilesystemLoader
Loads template from the filesystem.

Namespace

Twig\Loader

Code

private function isAbsolutePath(string $file) : bool {
    return strspn($file, '/\\', 0, 1) || \strlen($file) > 3 && ctype_alpha($file[0]) && ':' === $file[1] && strspn($file, '/\\', 2, 1) || null !== parse_url($file, \PHP_URL_SCHEME);
}

API Navigation

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