protected function ContentModerationWorkbenchEmailTest::getAdditionalFieldsForTransition in Workbench Email 8
Same name and namespace in other branches
- 2.x tests/src/Functional/ContentModerationWorkbenchEmailTest.php \Drupal\Tests\workbench_email\Functional\ContentModerationWorkbenchEmailTest::getAdditionalFieldsForTransition()
Gets additional field data.
Parameters
string $from_state: From state.
string $to_state: To state.
Return value
array Additional fields.
Overrides WorkbenchEmailTestBase::getAdditionalFieldsForTransition
File
- tests/
src/ Functional/ ContentModerationWorkbenchEmailTest.php, line 195
Class
- ContentModerationWorkbenchEmailTest
- Defines a class for testing workbench email with content moderation.
Namespace
Drupal\Tests\workbench_email\FunctionalCode
protected function getAdditionalFieldsForTransition($from_state, $to_state) {
return [
'moderation_state[0][state]' => $to_state,
];
}