You are here

public function Textimage::getWidth in Textimage 8.4

Same name and namespace in other branches
  1. 8.3 src/Textimage.php \Drupal\textimage\Textimage::getWidth()

Returns the width of the Textimage.

Return value

int|null The width of the Textimage, or NULL if not available.

Overrides TextimageInterface::getWidth

1 call to Textimage::getWidth()
Textimage::setCached in src/Textimage.php
Cache Textimage data.

File

src/Textimage.php, line 447

Class

Textimage
Provides a Textimage.

Namespace

Drupal\textimage

Code

public function getWidth() {
  return $this->processed ? $this->width : NULL;
}