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

Breadcrumb

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

function SplFileInfo::getFilenameWithoutExtension

Overrides SplFileInfo::getFilenameWithoutExtension

1 method overrides SplFileInfo::getFilenameWithoutExtension()
SplFileInfo::getFilenameWithoutExtension in vendor/symfony/finder/SplFileInfo.php

File

vendor/symfony/finder/SplFileInfo.php, line 54

Class

SplFileInfo
Extends \SplFileInfo to support relative paths.

Namespace

Symfony\Component\Finder

Code

public function getFilenameWithoutExtension() : string {
    $filename = $this->getFilename();
    return pathinfo($filename, \PATHINFO_FILENAME);
}

API Navigation

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