public function Textimage::setTemporary in Textimage 8.3
Same name and namespace in other branches
- 8.4 src/Textimage.php \Drupal\textimage\Textimage::setTemporary()
Set Textimage to be temporary.
Parameters
bool $is_temp: FALSE if caching is required for this Textimage.
Return value
$this
Overrides TextimageInterface::setTemporary
File
- src/
Textimage.php, line 354
Class
- Textimage
- Provides a Textimage.
Namespace
Drupal\textimageCode
public function setTemporary($is_temp) {
if ($this->uri) {
throw new TextimageException("URI already set");
}
$this
->set('caching', !$is_temp);
return $this;
}