protected function LayoutBuilderTranslationTest::getTranslatorPermissions in Drupal 9
Same name and namespace in other branches
- 8 core/modules/layout_builder/tests/src/Functional/LayoutBuilderTranslationTest.php \Drupal\Tests\layout_builder\Functional\LayoutBuilderTranslationTest::getTranslatorPermissions()
- 10 core/modules/layout_builder/tests/src/Functional/LayoutBuilderTranslationTest.php \Drupal\Tests\layout_builder\Functional\LayoutBuilderTranslationTest::getTranslatorPermissions()
Returns an array of permissions needed for the translator.
Overrides ContentTranslationTestBase::getTranslatorPermissions
File
- core/
modules/ layout_builder/ tests/ src/ Functional/ LayoutBuilderTranslationTest.php, line 137
Class
- LayoutBuilderTranslationTest
- Tests that the Layout Builder works with translated content.
Namespace
Drupal\Tests\layout_builder\FunctionalCode
protected function getTranslatorPermissions() {
$permissions = parent::getTranslatorPermissions();
$permissions[] = 'view test entity translations';
$permissions[] = 'view test entity';
$permissions[] = 'configure any layout';
return $permissions;
}