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

Breadcrumb

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

function Path::toLower

2 calls to Path::toLower()
Path::getExtension in vendor/symfony/filesystem/Path.php
Returns the extension from a file path (without leading dot).
Path::hasExtension in vendor/symfony/filesystem/Path.php
Returns whether the path has an (or the specified) extension.

File

vendor/symfony/filesystem/Path.php, line 804

Class

Path
Contains utility methods for handling path strings.

Namespace

Symfony\Component\Filesystem

Code

private static function toLower(string $string) : string {
    if (false !== ($encoding = mb_detect_encoding($string, null, true))) {
        return mb_strtolower($string, $encoding);
    }
    return strtolower($string);
}

API Navigation

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