function LanguageSelectorTranslatableTest::getAdministratorPermissions
Same name in other branches
- 8.9.x core/modules/language/tests/src/Functional/LanguageSelectorTranslatableTest.php \Drupal\Tests\language\Functional\LanguageSelectorTranslatableTest::getAdministratorPermissions()
- 10 core/modules/language/tests/src/Functional/LanguageSelectorTranslatableTest.php \Drupal\Tests\language\Functional\LanguageSelectorTranslatableTest::getAdministratorPermissions()
- 11.x core/modules/language/tests/src/Functional/LanguageSelectorTranslatableTest.php \Drupal\Tests\language\Functional\LanguageSelectorTranslatableTest::getAdministratorPermissions()
Returns an array of permissions needed for the translator.
1 call to LanguageSelectorTranslatableTest::getAdministratorPermissions()
- LanguageSelectorTranslatableTest::setUp in core/
modules/ language/ tests/ src/ Functional/ LanguageSelectorTranslatableTest.php
File
-
core/
modules/ language/ tests/ src/ Functional/ LanguageSelectorTranslatableTest.php, line 55
Class
- LanguageSelectorTranslatableTest
- Tests the content translation settings language selector options.
Namespace
Drupal\Tests\language\FunctionalCode
protected function getAdministratorPermissions() {
return array_filter([
'translate interface',
'administer content translation',
'create content translations',
'update content translations',
'delete content translations',
'administer languages',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.