function ImageTest::imageAttributes

Same name and namespace in other branches
  1. 10 core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTest.php \Drupal\Tests\ckeditor5\FunctionalJavascript\ImageTest::imageAttributes()
  2. 11.x core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTest.php \Drupal\Tests\ckeditor5\FunctionalJavascript\ImageTest::imageAttributes()

Provides the relevant image attributes.

Return value

string[]

Overrides ImageTestBase::imageAttributes

File

core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTest.php, line 114

Class

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

Namespace

Drupal\Tests\ckeditor5\FunctionalJavascript

Code

protected function imageAttributes() {
    return [
        'data-entity-type' => 'file',
        'data-entity-uuid' => $this->file
            ->uuid(),
        'src' => $this->file
            ->createFileUrl(),
    ];
}

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