protected function renderElement(ElementInterface $element)
    {
        $collection = $this->getAttributesCollection($element);

        $this->addElementChildren($element, $collection);
        $this->addElementDependencies($element, $collection);
        $this->addElementRules($element, $collection);

        return $this->formatter->formatAttributesCollection($collection);
    }
protected function renderElement(ElementInterface $element)
    {
        $collection = $this->getAttributesCollection($element);

        $this->addElementChildren($element, $collection);
        $this->addElementDependencies($element, $collection);
        $this->addElementRules($element, $collection);

        return $this->formatter->formatAttributesCollection($collection);
    }
protected function renderElement ( ElementInterface $ element ) { $ collection = $ this -> getAttributesCollection ( $ element ) ; $ this -> addElementChildren ( $ element , $ collection ) ; $ this -> addElementDependencies ( $ element , $ collection ) ; $ this -> addElementRules ( $ element , $ collection ) ; return $ this -> formatter -> formatAttributesCollection ( $ collection ) ; }
Renders single form element with additional attributes

@param ElementInterface $element

@return array
Renders single form element with additional attributes