function ToolkitGdTest::providerSupportedImageTypes

Same name and namespace in other branches
  1. 10 core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php \Drupal\KernelTests\Core\Image\ToolkitGdTest::providerSupportedImageTypes()
  2. 11.x 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 397

Class

ToolkitGdTest
Tests for the GD image toolkit.

Namespace

Drupal\KernelTests\Core\Image

Code

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

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