Pimcore\Tool\XmlWriter::applyAttributes PHP Метод

applyAttributes() защищенный Метод

protected applyAttributes ( SimpleXMLElement $element, $attributes )
$element SimpleXMLElement
    protected function applyAttributes(\SimpleXMLElement $element, $attributes)
    {
        if ($attributes) {
            foreach ($attributes as $aKey => $aValue) {
                $element->addAttribute($aKey, $aValue);
            }
        }
        return $element;
    }