You are here

public function Image::getFileSize in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Image/Image.php \Drupal\Core\Image\Image::getFileSize()

Returns the size of the image file.

Return value

int|null The size of the file in bytes, or NULL if the image is invalid.

Overrides ImageInterface::getFileSize

File

core/lib/Drupal/Core/Image/Image.php, line 88
Contains \Drupal\Core\Image\Image.

Class

Image
Defines an image object to represent an image file.

Namespace

Drupal\Core\Image

Code

public function getFileSize() {
  return $this->fileSize;
}