function FieldItemListInterface::filterEmptyItems
Same name in other branches
- 9 core/lib/Drupal/Core/Field/FieldItemListInterface.php \Drupal\Core\Field\FieldItemListInterface::filterEmptyItems()
- 8.9.x core/lib/Drupal/Core/Field/FieldItemListInterface.php \Drupal\Core\Field\FieldItemListInterface::filterEmptyItems()
- 10 core/lib/Drupal/Core/Field/FieldItemListInterface.php \Drupal\Core\Field\FieldItemListInterface::filterEmptyItems()
Filters out empty field items and re-numbers the item deltas.
Return value
$this
1 method overrides FieldItemListInterface::filterEmptyItems()
- FieldItemList::filterEmptyItems in core/
lib/ Drupal/ Core/ Field/ FieldItemList.php - Filters out empty field items and re-numbers the item deltas.
File
-
core/
lib/ Drupal/ Core/ Field/ FieldItemListInterface.php, line 100
Class
- FieldItemListInterface
- Interface for fields, being lists of field items.
Namespace
Drupal\Core\FieldCode
public function filterEmptyItems();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.