W3cubDocs

/Symfony 4.1

InheritDataAwareIterator

class InheritDataAwareIterator extends IteratorIterator implements RecursiveIterator

Iterator that traverses an array of forms.

Contrary to \ArrayIterator, this iterator recognizes changes in the original array during iteration.

You can wrap the iterator into a {@link \RecursiveIteratorIterator} in order to enter any child form that inherits its parent's data and iterate the children of that form as well.

Methods

getChildren()

{@inheritdoc}

hasChildren()

{@inheritdoc}

Details

getChildren()

{@inheritdoc}

hasChildren()

{@inheritdoc}

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Form/Util/InheritDataAwareIterator.html