You are here

public function BlockContentTranslationUITest::getTranslatorPermissions in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php \Drupal\Tests\block_content\Functional\BlockContentTranslationUITest::getTranslatorPermissions()
  2. 10 core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php \Drupal\Tests\block_content\Functional\BlockContentTranslationUITest::getTranslatorPermissions()

Returns an array of permissions needed for the translator.

Overrides ContentTranslationTestBase::getTranslatorPermissions

File

core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php, line 74

Class

BlockContentTranslationUITest
Tests the block content translation UI.

Namespace

Drupal\Tests\block_content\Functional

Code

public function getTranslatorPermissions() {
  return array_merge(parent::getTranslatorPermissions(), [
    'translate any entity',
    'access administration pages',
    'administer blocks',
    'administer block_content fields',
  ]);
}