function ImageToolkitInterface::isValid

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php \Drupal\Core\ImageToolkit\ImageToolkitInterface::isValid()
  2. 10 core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php \Drupal\Core\ImageToolkit\ImageToolkitInterface::isValid()
  3. 11.x core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php \Drupal\Core\ImageToolkit\ImageToolkitInterface::isValid()

Checks if the image is valid.

Return value

bool TRUE if the image toolkit is currently handling a valid image, FALSE otherwise.

2 methods override ImageToolkitInterface::isValid()
GDToolkit::isValid in core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
Checks if the image is valid.
TestToolkit::isValid in core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php
Checks if the image is valid.

File

core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php, line 79

Class

ImageToolkitInterface
Defines an interface for image toolkits.

Namespace

Drupal\Core\ImageToolkit

Code

public function isValid();

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