function BlockContentTranslationUITest::getTranslatorPermissions

Same name in other branches
  1. 9 core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php \Drupal\Tests\block_content\Functional\BlockContentTranslationUITest::getTranslatorPermissions()
  2. 8.9.x core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php \Drupal\Tests\block_content\Functional\BlockContentTranslationUITest::getTranslatorPermissions()
  3. 10 core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php \Drupal\Tests\block_content\Functional\BlockContentTranslationUITest::getTranslatorPermissions()

Overrides ContentTranslationTestBase::getTranslatorPermissions

File

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

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',
        'access block library',
        'create basic block content',
        'edit any basic block content',
        'delete any basic block content',
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.