Skip to content

Commit

Permalink
Typo (#1008)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegosardina authored Apr 24, 2023
1 parent 63c837d commit ddc02db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion component-model/en/@home.texy
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Returns a component. Attempt to call undefined child causes invoking of factory
Iterating over Children
-----------------------

The [getComponents($deep = false, $type = null) |api:Nette\ComponentModel\Container::getComponents()] method is used for iteration. The first parameter specifies whether to traverse the components in depth (or recursively). With `true`, it not only iterates all its children, but also all children of its children, etc. Second parameter servers as an optional filter by class or interface.
The [getComponents($deep = false, $type = null) |api:Nette\ComponentModel\Container::getComponents()] method is used for iteration. The first parameter specifies whether to traverse the components in depth (or recursively). With `true`, it not only iterates all its children, but also all children of its children, etc. Second parameter serves as an optional filter by class or interface.

```php
foreach ($form->getComponents(true, Nette\Forms\IControl::class) as $control) {
Expand Down

0 comments on commit ddc02db

Please sign in to comment.