protected function ContentTranslationTestBase::getTranslatorPermissions in Drupal 10
Same name and namespace in other branches
- 8 core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationTestBase::getTranslatorPermissions()
- 9 core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationTestBase::getTranslatorPermissions()
Returns an array of permissions needed for the translator.
1 method overrides ContentTranslationTestBase::getTranslatorPermissions()
- TranslationLinkTest::getTranslatorPermissions in core/
modules/ content_translation/ tests/ src/ Functional/ Views/ TranslationLinkTest.php - Returns an array of permissions needed for the translator.
File
- core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationTestBase.php, line 116
Class
- ContentTranslationTestBase
- Base class for content translation tests.
Namespace
Drupal\Tests\content_translation\FunctionalCode
protected function getTranslatorPermissions() {
return array_filter([
$this
->getTranslatePermission(),
'create content translations',
'update content translations',
'delete content translations',
]);
}