Contao\Widget::getAttributes PHP Method

getAttributes() public method

Return all attributes as string
public getAttributes ( array $arrStrip = [] ) : string
$arrStrip array An optional array with attributes to strip
return string The attributes string
    public function getAttributes($arrStrip = array())
    {
        $strAttributes = '';
        foreach (array_keys($this->arrAttributes) as $strKey) {
            if (!in_array($strKey, $arrStrip)) {
                $strAttributes .= $this->getAttribute($strKey);
            }
        }
        return $strAttributes;
    }