function ImageFactory::__construct

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

Constructs a new ImageFactory object.

Parameters

\Drupal\Core\ImageToolkit\ImageToolkitManager $toolkit_manager: The image toolkit plugin manager.

File

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

Class

ImageFactory
Provides a factory for image objects.

Namespace

Drupal\Core\Image

Code

public function __construct(ImageToolkitManager $toolkit_manager) {
    $this->toolkitManager = $toolkit_manager;
    $this->toolkitId = $this->toolkitManager
        ->getDefaultToolkitId();
}

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