original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: Adds javascript children to element
  
  @param ElementInterface    $element
  @param AttributeCollection $collection
docstring_tokens: Adds javascript children to element