HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/bwcdev/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;
		} );
	}


}