function LanguageSelectorTranslatableTest::getAdministratorPermissions

Same name in other branches
  1. 9 core/modules/language/tests/src/Functional/LanguageSelectorTranslatableTest.php \Drupal\Tests\language\Functional\LanguageSelectorTranslatableTest::getAdministratorPermissions()
  2. 8.9.x core/modules/language/tests/src/Functional/LanguageSelectorTranslatableTest.php \Drupal\Tests\language\Functional\LanguageSelectorTranslatableTest::getAdministratorPermissions()
  3. 11.x core/modules/language/tests/src/Functional/LanguageSelectorTranslatableTest.php \Drupal\Tests\language\Functional\LanguageSelectorTranslatableTest::getAdministratorPermissions()

Returns an array of permissions needed for the translator.

1 call to LanguageSelectorTranslatableTest::getAdministratorPermissions()
LanguageSelectorTranslatableTest::setUp in core/modules/language/tests/src/Functional/LanguageSelectorTranslatableTest.php

File

core/modules/language/tests/src/Functional/LanguageSelectorTranslatableTest.php, line 59

Class

LanguageSelectorTranslatableTest
Tests the content translation settings language selector options.

Namespace

Drupal\Tests\language\Functional

Code

protected function getAdministratorPermissions() {
    return array_filter([
        'translate interface',
        'administer content translation',
        'create content translations',
        'update content translations',
        'delete content translations',
        'administer languages',
    ]);
}

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