function TestToolkit::isValid
Checks if the image is valid.
Return value
bool TRUE if the image toolkit is currently handling a valid image, FALSE otherwise.
Overrides ImageToolkitInterface::isValid
File
-
core/
modules/ system/ tests/ modules/ image_test/ src/ Plugin/ ImageToolkit/ TestToolkit.php, line 126
Class
- TestToolkit
- Defines a Test toolkit for image manipulation within Drupal.
Namespace
Drupal\image_test\Plugin\ImageToolkitCode
public function isValid() {
return isset($this->type);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.