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

Breadcrumb

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

function Deprecation::basename

A non-local-aware version of PHPs basename function.

1 call to Deprecation::basename()
Deprecation::delegateTriggerToBackend in vendor/doctrine/deprecations/lib/Doctrine/Deprecations/Deprecation.php

File

vendor/doctrine/deprecations/lib/Doctrine/Deprecations/Deprecation.php, line 216

Class

Deprecation
Manages Deprecation logging in different ways.

Namespace

Doctrine\Deprecations

Code

private static function basename(string $filename) : string {
    $pos = strrpos($filename, DIRECTORY_SEPARATOR);
    if ($pos === false) {
        return $filename;
    }
    return substr($filename, $pos + 1);
}

API Navigation

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