function GDToolkit::__unset
File
- 
              core/
modules/ system/ src/ Plugin/ ImageToolkit/ GDToolkit.php, line 149  
Class
- GDToolkit
 - Defines the GD2 toolkit for image manipulation within Drupal.
 
Namespace
Drupal\system\Plugin\ImageToolkitCode
public function __unset(string $name) : void {
  if ($name === 'resource') {
    @trigger_error('Unsetting 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);
    unset($this->image);
  }
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.