function ModerationStateTestBase::getWorkflowTransitionPermission

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

Gets the permission machine name for a transition.

Parameters

string $workflow_id: The workflow ID.

string $transition_id: The transition ID.

Return value

string The permission machine name for a transition.

File

core/modules/content_moderation/tests/src/Functional/ModerationStateTestBase.php, line 97

Class

ModerationStateTestBase
Defines a base class for moderation state tests.

Namespace

Drupal\Tests\content_moderation\Functional

Code

protected function getWorkflowTransitionPermission($workflow_id, $transition_id) {
    return 'use ' . $workflow_id . ' transition ' . $transition_id;
}

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