protected function ContentGenerationTrait::getFieldData in Workbench Moderation to Content Moderation 8.2
1 call to ContentGenerationTrait::getFieldData()
- ContentGenerationTrait::getRevisionMatrix in tests/
src/ Kernel/ ContentGenerationTrait.php
File
- tests/
src/ Kernel/ ContentGenerationTrait.php, line 40
Class
Namespace
Drupal\Tests\wbm2cm\KernelCode
protected function getFieldData(ContentEntityInterface $entity) {
return [
'moderation_state' => $entity->moderation_state->value,
'title' => $entity
->label(),
];
}