You are here

protected function Textimage::getCachedData in Textimage 8.4

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

Get cached Textimage data.

Return value

bool TRUE if an existing image file can be used, FALSE if no hit

2 calls to Textimage::getCachedData()
Textimage::load in src/Textimage.php
Load Textimage metadata from cache.
Textimage::process in src/Textimage.php
Process the Textimage, with the required raw text.

File

src/Textimage.php, line 884

Class

Textimage
Provides a Textimage.

Namespace

Drupal\textimage

Code

protected function getCachedData() {
  if ($cached = $this->cache
    ->get('tiid:' . $this->id)) {
    return $cached->data;
  }
  return FALSE;
}