Search for basename

  1. Search 7.x for basename
  2. Search 9.5.x for basename
  3. Search 10.3.x for basename
  4. Search 11.x for basename
  5. Other projects
Title Object type File name Summary
drupal_basename function core/includes/file.inc Gets the filename from a given path.
FileSystem::basename function core/lib/Drupal/Core/File/FileSystem.php Gets the filename from a given path.
FileSystemDeprecationTest::testDeprecatedDrupalBasename function core/tests/Drupal/KernelTests/Core/File/FileSystemDeprecationTest.php @expectedDeprecation drupal_basename() is deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystemInterface::basename(). See https://www.drupal.org/node/2418133.
FileSystemInterface::basename function core/lib/Drupal/Core/File/FileSystemInterface.php Gets the filename from a given path.
FileSystemTest::providerTestBasename function core/tests/Drupal/Tests/Core/File/FileSystemTest.php
FileSystemTest::testBasename function core/tests/Drupal/Tests/Core/File/FileSystemTest.php @covers ::basename

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.