ImageFactory::__construct

public ImageFactory::__construct(ImageToolkitManager $toolkit_manager)

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();
}
doc_Drupal
2016-10-29 09:19:20
Comments
Leave a Comment

Please login to continue.