function ImageTestBase::providerWidth

Same name and namespace in other branches
  1. 9 core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php \Drupal\Tests\ckeditor5\FunctionalJavascript\ImageTestBase::providerWidth()
  2. 10 core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php \Drupal\Tests\ckeditor5\FunctionalJavascript\ImageTestBase::providerWidth()

Data provider for ::testWidth().

Return value

string[][]

File

core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php, line 623

Class

ImageTestBase
@coversDefaultClass <a href="/api/drupal/core%21modules%21ckeditor5%21src%21Plugin%21CKEditor5Plugin%21Image.php/class/Image/11.x" title="CKEditor 5 Image plugin." class="local">\Drupal\ckeditor5\Plugin\CKEditor5Plugin\Image</a> @group ckeditor5 @internal

Namespace

Drupal\Tests\ckeditor5\FunctionalJavascript

Code

public static function providerWidth() : array {
    return [
        'Image resize with percent unit (only allowed in HTML 4)' => [
            'width' => '33%',
        ],
        'Image resize with (implied) px unit' => [
            'width' => '100',
        ],
    ];
}

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