function ImageTestBase::imageAttributes
Provides the relevant image attributes.
Return value
string[] An associative array with the image source, width, and height.
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()
- ImageTestTestBase::imageAttributes in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ ImageTestTestBase.php - Provides the relevant image attributes.
File
-
core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ ImageTestBase.php, line 56
Class
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.