public function getAttributes($position = 'field', $htmlBuild = true)
    {
        $result = array_get($this->attributes, $position, []);
        $result = $this->filterAttributes($result, $position);

        return $htmlBuild ? Html::attributes($result) : $result;
    }
public function getAttributes($position = 'field', $htmlBuild = true)
    {
        $result = array_get($this->attributes, $position, []);
        $result = $this->filterAttributes($result, $position);

        return $htmlBuild ? Html::attributes($result) : $result;
    }
public function getAttributes ( $ position = 'field' , $ htmlBuild = true ) { $ result = array_get ( $ this -> attributes , $ position , [ ] ) ; $ result = $ this -> filterAttributes ( $ result , $ position ) ; return $ htmlBuild ? Html :: attributes ( $ result ) : $ result ; }
Returns the attributes for this field at a given position.
@param  string $position
@return array
Returns the attributes for this field at a given position .