public FieldItemListInterface::generateSampleItems($count = 1)
Populates a specified number of field items with valid sample data.
Parameters
int $count: The number of items to create.
File
- core/lib/Drupal/Core/Field/FieldItemListInterface.php, line 192
Class
- FieldItemListInterface
- Interface for fields, being lists of field items.
Namespace
Drupal\Core\Field
Code
public function generateSampleItems($count = 1);
Please login to continue.