Search for generateSampleItems

  1. Search 7.x for generateSampleItems
  2. Search 9.5.x for generateSampleItems
  3. Search 8.9.x for generateSampleItems
  4. Search 11.x for generateSampleItems
  5. Other projects
Title Object type File name Summary
FieldItemList::generateSampleItems function core/lib/Drupal/Core/Field/FieldItemList.php Populates a specified number of field items with valid sample data.
FieldItemListInterface::generateSampleItems function core/lib/Drupal/Core/Field/FieldItemListInterface.php Populates a specified number of field items with valid sample data.
ModerationStateFieldItemList::generateSampleItems function core/modules/content_moderation/src/Plugin/Field/ModerationStateFieldItemList.php Populates a specified number of field items with valid sample data.
OptionsFieldTest::testGenerateSampleItemsWithNoAllowedValues function core/modules/options/tests/src/Kernel/OptionsFieldTest.php Tests that ::generateSampleItems does not fail with empty allowed values.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.