Generator/Collection/ComponentCollection.php
public function getContainmentTreeChildren(BaseGenerator $component) {
    $component_id = $this->getComponentKey($component);

    $tree = $this->getContainmentTree();

    $child_ids = $tree[$component_id] ?? [];
    $return = [];
    foreach ($child_ids as $id) {
      $return[$id] = $this->components[$id];
    }

    return $return;
  }
public function getContainmentTreeChildren(BaseGenerator $component) {
    $component_id = $this->getComponentKey($component);

    $tree = $this->getContainmentTree();

    $child_ids = $tree[$component_id] ?? [];
    $return = [];
    foreach ($child_ids as $id) {
      $return[$id] = $this->components[$id];
    }

    return $return;
  }
public function getContainmentTreeChildren ( BaseGenerator $ component ) { $ component_id = $ this -> getComponentKey ( $ component ) ; $ tree = $ this -> getContainmentTree ( ) ; $ child_ids = $ tree [ $ component_id ] ?? [ ] ; $ return = [ ] ; foreach ( $ child_ids as $ id ) { $ return [ $ id ] = $ this -> components [ $ id ] ; } return $ return ; }
Gets a component's children in the tree.

@param BaseGenerator $component
The component to get children for.

@return BaseGenerator[]
The child components, keyed by unique ID.
Gets a component s children in the tree .