function ImageFactory::setToolkitId

Same name in other branches
  1. 9 core/lib/Drupal/Core/Image/ImageFactory.php \Drupal\Core\Image\ImageFactory::setToolkitId()
  2. 8.9.x core/lib/Drupal/Core/Image/ImageFactory.php \Drupal\Core\Image\ImageFactory::setToolkitId()
  3. 10 core/lib/Drupal/Core/Image/ImageFactory.php \Drupal\Core\Image\ImageFactory::setToolkitId()

Sets the ID of the image toolkit.

Parameters

string $toolkit_id: The ID of the image toolkit to use for this image factory.

Return value

$this

File

core/lib/Drupal/Core/Image/ImageFactory.php, line 45

Class

ImageFactory
Provides a factory for image objects.

Namespace

Drupal\Core\Image

Code

public function setToolkitId($toolkit_id) {
    $this->toolkitId = $toolkit_id;
    return $this;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.