This commit is contained in:
2026-07-02 15:54:39 -06:00
commit 9883323161
17470 changed files with 4470592 additions and 0 deletions
@@ -0,0 +1,26 @@
<?php
namespace Gravity_Forms\Gravity_Forms\Config\Items;
/**
* Acts as a container for any Global Config data we need to send to both
* the admin and theme side of the ecosystem.
*
* @since 2.7
*/
class GF_Config_Global {
/**
* The data to send to both configs.
*
* @return array
*/
public function data() {
return array(
'hmr_dev' => defined( 'GF_ENABLE_HMR' ) && GF_ENABLE_HMR,
'public_path' => trailingslashit( \GFCommon::get_base_url() ) . 'assets/js/dist/',
'config_nonce' => wp_create_nonce( 'gform_config_ajax' ),
);
}
}