FML/Controls/Control.php
public function addDataAttributes(array $dataAttributes)
    {
        foreach ($dataAttributes as $name => $value) {
            $this->addDataAttribute($name, $value);
        }
        return $this;
    }
public function addDataAttributes(array $dataAttributes)
    {
        foreach ($dataAttributes as $name => $value) {
            $this->addDataAttribute($name, $value);
        }
        return $this;
    }
public function addDataAttributes ( array $ dataAttributes ) { foreach ( $ dataAttributes as $ name => $ value ) { $ this -> addDataAttribute ( $ name , $ value ) ; } return $ this ; }
Add multiple data attributes

@api
@param mixed[] $dataAttributes Data attributes
@return static
Add multiple data attributes