function FieldItemListInterface::generateSampleItems
Same name in other branches
- 9 core/lib/Drupal/Core/Field/FieldItemListInterface.php \Drupal\Core\Field\FieldItemListInterface::generateSampleItems()
- 8.9.x core/lib/Drupal/Core/Field/FieldItemListInterface.php \Drupal\Core\Field\FieldItemListInterface::generateSampleItems()
- 10 core/lib/Drupal/Core/Field/FieldItemListInterface.php \Drupal\Core\Field\FieldItemListInterface::generateSampleItems()
Populates a specified number of field items with valid sample data.
Parameters
int $count: The number of items to create.
1 method overrides FieldItemListInterface::generateSampleItems()
- FieldItemList::generateSampleItems in core/
lib/ Drupal/ Core/ Field/ FieldItemList.php - Populates a specified number of field items with valid sample data.
File
-
core/
lib/ Drupal/ Core/ Field/ FieldItemListInterface.php, line 195
Class
- FieldItemListInterface
- Interface for fields, being lists of field items.
Namespace
Drupal\Core\FieldCode
public function generateSampleItems($count = 1);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.