function TextItemBaseTest::providerApplyDefaultValueFormat
Same name and namespace in other branches
- main core/modules/text/tests/src/Kernel/TextItemBaseTest.php \Drupal\Tests\text\Kernel\TextItemBaseTest::providerApplyDefaultValueFormat()
Data provider for testApplyDefaultValueFormat.
File
-
core/
modules/ text/ tests/ src/ Kernel/ TextItemBaseTest.php, line 151
Class
- TextItemBaseTest
- Tests TextItemBase.
Namespace
Drupal\Tests\text\KernelCode
public static function providerApplyDefaultValueFormat() : array {
return [
'no allowed formats uses fallback' => [
[],
'plain_text',
],
'fallback in allowed formats' => [
[
'plain_text',
'format1',
],
'plain_text',
],
'fallback not in allowed formats uses first allowed' => [
[
'format1',
'format2',
],
'format1',
],
'single non-fallback allowed format' => [
[
'format1',
],
'format1',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.