You are here

public function AFile::isImage in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2

Checks file is image or not.

4 calls to AFile::isImage()
AFile::getData in src/Flmngr/FileUploaderServer/lib/file/AFile.php
Gets a data for response format file representation.
FileCommited::applySizes in src/Flmngr/FileUploaderServer/lib/file/FileCommited.php
Apply sized method.
FileCommited::getFileModification in src/Flmngr/FileUploaderServer/lib/file/FileCommited.php
Gets specified file modification.
FileUploadedQuick::getData in src/Flmngr/FileUploaderServer/lib/file/FileUploadedQuick.php
Gets a data for response format file representation.

File

src/Flmngr/FileUploaderServer/lib/file/AFile.php, line 209

Class

AFile
Abstract file item both for just uploaded and fully commited files. Contains some handy method for accessing files info programmatically.

Namespace

Drupal\n1ed\Flmngr\FileUploaderServer\lib\file

Code

public function isImage() {
  return Utils::isImage($this
    ->getName());
}