public function ModerationStateFieldItemList::generateSampleItems in Drupal 9
Populates a specified number of field items with valid sample data.
Parameters
int $count: The number of items to create.
Overrides FieldItemList::generateSampleItems
File
- core/
modules/ content_moderation/ src/ Plugin/ Field/ ModerationStateFieldItemList.php, line 181
Class
- ModerationStateFieldItemList
- A computed field that provides a content entity's moderation state.
Namespace
Drupal\content_moderation\Plugin\FieldCode
public function generateSampleItems($count = 1) {
// No sample items generated since the starting moderation state is always
// computed based on the default state of the associated workflow.
}