function FileMediaFormatterTestBase::dataProvider
Same name in other branches
- 8.9.x core/modules/file/tests/src/Functional/Formatter/FileMediaFormatterTestBase.php \Drupal\Tests\file\Functional\Formatter\FileMediaFormatterTestBase::dataProvider()
- 10 core/modules/file/tests/src/Functional/Formatter/FileMediaFormatterTestBase.php \Drupal\Tests\file\Functional\Formatter\FileMediaFormatterTestBase::dataProvider()
- 11.x core/modules/file/tests/src/Functional/Formatter/FileMediaFormatterTestBase.php \Drupal\Tests\file\Functional\Formatter\FileMediaFormatterTestBase::dataProvider()
Data provider for testRender.
Return value
array An array of data arrays. The data array contains:
- The number of expected HTML tags.
- An array of settings for the field formatter.
File
-
core/
modules/ file/ tests/ src/ Functional/ Formatter/ FileMediaFormatterTestBase.php, line 87
Class
- FileMediaFormatterTestBase
- Provides methods specifically for testing File module's media formatter's.
Namespace
Drupal\Tests\file\Functional\FormatterCode
public function dataProvider() {
return [
[
2,
[],
],
[
1,
[
'multiple_file_display_type' => 'sources',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.