function ContentTranslationTestBase::getTranslatorPermissions

Same name and namespace in other branches
  1. 11.x 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()
MediaTranslationUITest::getTranslatorPermissions in core/modules/media/tests/src/Functional/MediaTranslationUITest.php
Returns an array of permissions needed for the translator.

File

core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php, line 119

Class

ContentTranslationTestBase
Base class for content translation tests.

Namespace

Drupal\Tests\content_translation\Functional

Code

protected function getTranslatorPermissions() {
  return array_filter([
    $this->getTranslatePermission(),
    'create content translations',
    'update content translations',
    'delete content translations',
  ]);
}

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