You are here

public function ImagemagickExecManager::setTimeout in ImageMagick 8.2

Same name and namespace in other branches
  1. 8.3 src/ImagemagickExecManager.php \Drupal\imagemagick\ImagemagickExecManager::setTimeout()

Sets the execution timeout (max. runtime).

To disable the timeout, set this value to null.

@todo in 8.x-3.0, add this method to the interface.

Parameters

int|null $timeout: The timeout in seconds.

Return value

$this

File

src/ImagemagickExecManager.php, line 149

Class

ImagemagickExecManager
Manage execution of ImageMagick/GraphicsMagick commands.

Namespace

Drupal\imagemagick

Code

public function setTimeout($timeout) {
  $this->timeout = $timeout;
  return $this;
}