function MachineNameTransliterationTest::machineNameInputOutput
Same name in other branches
- 11.x core/tests/Drupal/FunctionalJavascriptTests/MachineName/MachineNameTransliterationTest.php \Drupal\FunctionalJavascriptTests\MachineName\MachineNameTransliterationTest::machineNameInputOutput()
Data for the testMachineNameTransliterations.
Return value
array
File
-
core/
tests/ Drupal/ FunctionalJavascriptTests/ MachineName/ MachineNameTransliterationTest.php, line 70
Class
- MachineNameTransliterationTest
- Tests the machine name transliteration functionality.
Namespace
Drupal\FunctionalJavascriptTests\MachineNameCode
public static function machineNameInputOutput() : array {
return [
// cSpell:disable
[
'en',
'Bob',
'bob',
],
[
'en',
'Äwesome',
'awesome',
],
[
'de',
'Äwesome',
'aewesome',
],
[
'da',
'äöüåøhello',
'aouaaoehello',
],
[
'fr',
'ц',
'c',
],
[
'fr',
'ᐑ',
'wii',
],
// This test is not working with chromedriver as '𐌰𐌸' chars are not
// accepted.
// ['en', '𐌰𐌸', '__'],
[
'en',
'Ä Ö Ü Å Ø äöüåøhello',
'a_o_u_a_o_aouaohello',
],
[
'de',
'Ä Ö Ü Å Ø äöüåøhello',
'ae_oe_ue_a_o_aeoeueaohello',
],
[
'de',
']URY&m_G^;',
'ury_m_g',
],
[
'da',
'Ä Ö Ü Å Ø äöüåøhello',
'a_o_u_aa_oe_aouaaoehello',
],
[
'kg',
'ц',
'ts',
],
[
'en',
' Hello Abventor! ',
'hello_abventor',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.