protected function transformControlField($control)
    {
        $attributes = $control->getAttributes();

        foreach (self::$unusedFieldAttrs as $attr) {
            if (isset($attributes[$attr])) {
                unset($attributes[$attr]);
            }
        }

        return $attributes;
    }
protected function transformControlField($control)
    {
        $attributes = $control->getAttributes();

        foreach (self::$unusedFieldAttrs as $attr) {
            if (isset($attributes[$attr])) {
                unset($attributes[$attr]);
            }
        }

        return $attributes;
    }
protected function transformControlField ( $ control ) { $ attributes = $ control -> getAttributes ( ) ; foreach ( self :: $ unusedFieldAttrs as $ attr ) { if ( isset ( $ attributes [ $ attr ] ) ) { unset ( $ attributes [ $ attr ] ) ; } } return $ attributes ; }
Returns an array of a field without unused field attributes.

@param \Antares\Html\Form\Field $control
@return array
Returns an array of a field without unused field attributes .