function ImageTestBase::imageAttributes
Same name in other branches
- 9 core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php \Drupal\Tests\ckeditor5\FunctionalJavascript\ImageTestBase::imageAttributes()
- 11.x core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php \Drupal\Tests\ckeditor5\FunctionalJavascript\ImageTestBase::imageAttributes()
Provides the relevant image attributes.
Return value
string[]
1 call to ImageTestBase::imageAttributes()
- ImageTestBase::imageAttributesAsString in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ ImageTestBase.php - Helper to format attributes.
1 method overrides ImageTestBase::imageAttributes()
- ImageTest::imageAttributes in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ ImageTest.php - Provides the relevant image attributes.
File
-
core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ ImageTestBase.php, line 58
Class
- ImageTestBase
- @coversDefaultClass \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Image @group ckeditor5 @internal
Namespace
Drupal\Tests\ckeditor5\FunctionalJavascriptCode
protected function imageAttributes() {
return [
'src' => base_path() . 'core/misc/druplicon.png',
'width' => '88',
'height' => '100',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.