function GDToolkit::__isset

File

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

Class

GDToolkit
Defines the GD2 toolkit for image manipulation within Drupal.

Namespace

Drupal\system\Plugin\ImageToolkit

Code

public function __isset(string $name) : bool {
    if ($name === 'resource') {
        @trigger_error('Checking 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 isset($this->image);
    }
    return FALSE;
}

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