protected function parseAttributes( array $args )
	{
		if( empty( $args['attributes'] )) {
			return [];
		}

		$attributes = (array) $args['attributes'];

		foreach( $attributes as $key => $value ) {
			if( is_string( $key ))continue;
			unset( $attributes[ $key ] );
			if( !isset( $attributes[ $value ] )) {
				$attributes[ $value ] = '';
			}
		}

		return $attributes;
	}
protected function parseAttributes( array $args )
	{
		if( empty( $args['attributes'] )) {
			return [];
		}

		$attributes = (array) $args['attributes'];

		foreach( $attributes as $key => $value ) {
			if( is_string( $key ))continue;
			unset( $attributes[ $key ] );
			if( !isset( $attributes[ $value ] )) {
				$attributes[ $value ] = '';
			}
		}

		return $attributes;
	}
protected function parseAttributes ( array $ args ) { if ( empty ( $ args [ 'attributes' ] ) ) { return [ ] ; } $ attributes = ( array ) $ args [ 'attributes' ] ; foreach ( $ attributes as $ key => $ value ) { if ( is_string ( $ key ) ) continue ; unset ( $ attributes [ $ key ] ) ; if ( ! isset ( $ attributes [ $ value ] ) ) { $ attributes [ $ value ] = '' ; } } return $ attributes ; }
Parse the field attributes and convert to an array if needed

@return array
Parse the field attributes and convert to an array if needed