protected function addElementChildren(ElementInterface $element, AttributeCollection $collection)
    {
        $children = $element->getChildren();
        if ($children->count()) {
            $attribute = new Attribute('aoFields', $this->renderChildren($children), Attribute::TYPE_ARRAY);
            $collection->add($attribute);
        }
    }
protected function addElementChildren(ElementInterface $element, AttributeCollection $collection)
    {
        $children = $element->getChildren();
        if ($children->count()) {
            $attribute = new Attribute('aoFields', $this->renderChildren($children), Attribute::TYPE_ARRAY);
            $collection->add($attribute);
        }
    }
protected function addElementChildren ( ElementInterface $ element , AttributeCollection $ collection ) { $ children = $ element -> getChildren ( ) ; if ( $ children -> count ( ) ) { $ attribute = new Attribute ( 'aoFields' , $ this -> renderChildren ( $ children ) , Attribute :: TYPE_ARRAY ) ; $ collection -> add ( $ attribute ) ; } }
Adds javascript children to element

@param ElementInterface    $element
@param AttributeCollection $collection
Adds javascript children to element