function ToolkitGdTest::providerSupportedImageTypes

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php \Drupal\KernelTests\Core\Image\ToolkitGdTest::providerSupportedImageTypes()
  2. 10 core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php \Drupal\KernelTests\Core\Image\ToolkitGdTest::providerSupportedImageTypes()

Data provider for ::testCreateImageFromScratch().

File

core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php, line 394

Class

ToolkitGdTest
Tests for the GD image toolkit.

Namespace

Drupal\KernelTests\Core\Image

Code

public static function providerSupportedImageTypes() : array {
  return [
    [
      IMAGETYPE_PNG,
    ],
    [
      IMAGETYPE_GIF,
    ],
    [
      IMAGETYPE_JPEG,
    ],
    [
      IMAGETYPE_WEBP,
    ],
    [
      IMAGETYPE_AVIF,
    ],
  ];
}

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