function GDToolkit::__set
File
- 
              core/
modules/ system/ src/ Plugin/ ImageToolkit/ GDToolkit.php, line 128  
Class
- GDToolkit
 - Defines the GD2 toolkit for image manipulation within Drupal.
 
Namespace
Drupal\system\Plugin\ImageToolkitCode
public function __set(string $name, mixed $value) : void {
  if ($name === 'resource') {
    @trigger_error('Setting the \\Drupal\\system\\Plugin\\ImageToolkit\\GDToolkit::resource property is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use \\Drupal\\system\\Plugin\\ImageToolkit\\GDToolkit::image instead. See https://www.drupal.org/node/3265963', E_USER_DEPRECATED);
    $this->image = $value;
  }
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.