function GDToolkit::__get

File

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

Class

GDToolkit
Defines the GD2 toolkit for image manipulation within Drupal.

Namespace

Drupal\system\Plugin\ImageToolkit

Code

public function __get(string $name) {
    if ($name === 'resource') {
        @trigger_error('Accessing 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);
        return $this->image;
    }
}

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