protected function ModerationStateTestBase::getWorkflowTransitionPermission in Drupal 9
Same name and namespace in other branches
- 8 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 95
Class
- ModerationStateTestBase
- Defines a base class for moderation state tests.
Namespace
Drupal\Tests\content_moderation\FunctionalCode
protected function getWorkflowTransitionPermission($workflow_id, $transition_id) {
return 'use ' . $workflow_id . ' transition ' . $transition_id;
}