function ContentTranslationWorkflowsTest::getEntityOwnerPermissions

Same name in other branches
  1. 9 core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php \Drupal\Tests\content_translation\Functional\ContentTranslationWorkflowsTest::getEntityOwnerPermissions()
  2. 10 core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php \Drupal\Tests\content_translation\Functional\ContentTranslationWorkflowsTest::getEntityOwnerPermissions()

Returns an array of permissions needed for the entity owner.

1 call to ContentTranslationWorkflowsTest::getEntityOwnerPermissions()
ContentTranslationWorkflowsTest::setupUsers in core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php
Creates and activates translator, editor and admin users.

File

core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php, line 129

Class

ContentTranslationWorkflowsTest
Tests the content translation workflows for the test entity.

Namespace

Drupal\Tests\content_translation\Functional

Code

protected function getEntityOwnerPermissions() : array {
    return [
        'edit own entity_test content',
        'translate editable entities',
        'view test entity',
        'view test entity translations',
        'view unpublished test entity translations',
    ];
}

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