function ContentTranslationTestBase::getTranslatorPermissions
Same name in other branches
- 9 core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationTestBase::getTranslatorPermissions()
- 8.9.x core/modules/content_translation/src/Tests/ContentTranslationTestBase.php \Drupal\content_translation\Tests\ContentTranslationTestBase::getTranslatorPermissions()
- 8.9.x core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationTestBase::getTranslatorPermissions()
- 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.
2 calls to ContentTranslationTestBase::getTranslatorPermissions()
- ContentTranslationTestBase::getAdministratorPermissions in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationTestBase.php - Returns an array of permissions needed for the administrator.
- ContentTranslationTestBase::setupUsers in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationTestBase.php - Creates and activates translator, editor and admin users.
13 methods override ContentTranslationTestBase::getTranslatorPermissions()
- BlockContentTranslationUITest::getTranslatorPermissions in core/
modules/ block_content/ tests/ src/ Functional/ BlockContentTranslationUITest.php - Returns an array of permissions needed for the translator.
- CommentTranslationUITest::getTranslatorPermissions in core/
modules/ comment/ tests/ src/ Functional/ CommentTranslationUITest.php - Returns an array of permissions needed for the translator.
- ContentTestTranslationUITest::getTranslatorPermissions in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTestTranslationUITest.php - Returns an array of permissions needed for the translator.
- ContentTranslationPendingRevisionTestBase::getTranslatorPermissions in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationPendingRevisionTestBase.php - Returns an array of permissions needed for the translator.
- ContentTranslationWorkflowsTest::getTranslatorPermissions in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationWorkflowsTest.php - Returns an array of permissions needed for the translator.
File
-
core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationTestBase.php, line 117
Class
- ContentTranslationTestBase
- Base class for content translation tests.
Namespace
Drupal\Tests\content_translation\FunctionalCode
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.