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

Breadcrumb

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

function FileSystemInterface::basename

Gets the filename from a given path.

PHP's basename() does not properly support streams or filenames beginning with a non-US-ASCII character.

See also

http://bugs.php.net/bug.php?id=37738

basename()

Related topics

PHP wrapper functions
Functions that are wrappers or custom implementations of PHP functions.
1 method overrides FileSystemInterface::basename()
FileSystem::basename in core/lib/Drupal/Core/File/FileSystem.php
Gets the filename from a given path.

File

core/lib/Drupal/Core/File/FileSystemInterface.php, line 189

Class

FileSystemInterface
Provides an interface for helpers that operate on files and stream wrappers.

Namespace

Drupal\Core\File

Code

public function basename($uri, $suffix = NULL);
RSS feed
Powered by Drupal