public function DumperCollection::setAll

Sets children.

Parameters

array $children The children:

1 call to DumperCollection::setAll()
DumperPrefixCollection::mergeSlashNodes in drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Matcher/Dumper/DumperPrefixCollection.php
Merges nodes whose prefix ends with a slash

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Matcher/Dumper/DumperCollection.php, line 64

Class

DumperCollection
Collection of routes.

Namespace

Symfony\Component\Routing\Matcher\Dumper

Code

public function setAll(array $children) {
  foreach ($children as $child) {
    if ($child instanceof DumperCollection) {
      $child
        ->setParent($this);
    }
  }
  $this->children = $children;
}