src/View/Helper/HtmlElementTrait.php
public function getAttributes()
    {
        $id         = $this->getId();
        $attributes = $this->attributes;
        $class      = implode(' ', $this->getClass());
        if ($id) {
            $attributes['id'] = $this->normalizeId($id);
        }
        if ($class) {
            $attributes['class'] = $class;
        }
        return $attributes;
    }
public function getAttributes()
    {
        $id         = $this->getId();
        $attributes = $this->attributes;
        $class      = implode(' ', $this->getClass());
        if ($id) {
            $attributes['id'] = $this->normalizeId($id);
        }
        if ($class) {
            $attributes['class'] = $class;
        }
        return $attributes;
    }
public function getAttributes ( ) { $ id = $ this -> getId ( ) ; $ attributes = $ this -> attributes ; $ class = implode ( ' ' , $ this -> getClass ( ) ) ; if ( $ id ) { $ attributes [ 'id' ] = $ this -> normalizeId ( $ id ) ; } if ( $ class ) { $ attributes [ 'class' ] = $ class ; } return $ attributes ; }
Get attribute associative array

@return string[]
Get attribute associative array