function ImageTestTestBase::imageAttributes

Provides the relevant image attributes.

Return value

string[] Default image attributes for tests.

Overrides ImageTestBase::imageAttributes

File

core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestTestBase.php, line 115

Class

ImageTestTestBase
@internal

Namespace

Drupal\Tests\ckeditor5\FunctionalJavascript

Code

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

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