You are here

public function Webform::getIterator in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Entity/Webform.php \Drupal\webform\Entity\Webform::getIterator()

Define empty array iterator.

See: Issue #2759267: Undefined method Webform::getIterator().

File

src/Entity/Webform.php, line 3253

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function getIterator() {
  return new \ArrayIterator([]);
}