You are here

public static function Utils::getNameWithoutExt in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2

Gets name without extension.

2 calls to Utils::getNameWithoutExt()
FMDiskFileSystem::resizeFile in src/Flmngr/FlmngrServer/fs/FMDiskFileSystem.php
Creates a resized image.
Utils::getFreeFileName in src/Flmngr/FileUploaderServer/lib/file/Utils.php
Gets free file name.

File

src/Flmngr/FileUploaderServer/lib/file/Utils.php, line 13

Class

Utils
Utilites for uploader.

Namespace

Drupal\n1ed\Flmngr\FileUploaderServer\lib\file

Code

public static function getNameWithoutExt($filename) {
  $ext = Utils::getExt($filename);
  if ($ext == NULL) {
    return $filename;
  }
  return substr($filename, 0, strlen($filename) - strlen($ext) - 1);
}