HEX
Server: Apache
System: Linux p102.lithium.hosting 4.18.0-553.141.1.el8_10.x86_64 #1 SMP Fri Jul 10 17:48:02 UTC 2026 x86_64
User: bvzmoamr (9955)
PHP: 8.1.34
Disabled: syslog
Upload Files
File: /var/www/html/wp-content/plugins/gravityforms/includes/blocks/class-gf-block-attributes.php
<?php

namespace Gravity_Forms\Gravity_Forms\Blocks;

/**
 * Gravity Forms Block Attributes class.
 *
 * @since 2.7.4
 *
 * Class GF_Block_Attributes
 */
class GF_Block_Attributes {

	public function store( $attributes ) {
		add_filter( 'gform_form_block_attribute_values', function( $attr ) use ( $attributes ) {
			$form_id = rgar( $attributes, 'formId', 0 );

			if ( ! array_key_exists( $form_id, $attr ) ) {
				$attr[ $form_id ] = array();
			}

			$attr[ $form_id ][] = $attributes;
			return $attr;
		} );
	}


}