Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. GDToolkit.php

function GDToolkit::setImage

Sets an image or resets existing one.

Parameters

\GdImage|null $image: The GD image object or NULL.

Return value

$this An instance of the current toolkit object.

1 call to GDToolkit::setImage()
GDToolkit::load in core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
Loads an image from a file.

File

core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php, line 124

Class

GDToolkit
Defines the GD2 toolkit for image manipulation within Drupal.

Namespace

Drupal\system\Plugin\ImageToolkit

Code

public function setImage(?\GdImage $image) : static {
    $this->preLoadInfo = NULL;
    $this->image = $image;
    return $this;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal