function ComputedItemListTrait::getIterator

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php \Drupal\Core\TypedData\ComputedItemListTrait::getIterator()
  2. 10 core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php \Drupal\Core\TypedData\ComputedItemListTrait::getIterator()
  3. 11.x core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php \Drupal\Core\TypedData\ComputedItemListTrait::getIterator()

File

core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php, line 130

Class

ComputedItemListTrait
Provides common functionality for computed item lists.

Namespace

Drupal\Core\TypedData

Code

public function getIterator() {
    $this->ensureComputedValue();
    return parent::getIterator();
}

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