Gravity_Forms\Gravity_Forms\Fields\Config\GF_Field_Phone_Frontend_Config
Form specific config for the Phone field's international mode frontend.
Source: includes/fields/config/class-gf-field-phone-frontend-config.php:17
Details
- Kind:
class - Namespace:
Gravity_Forms\Gravity_Forms\Fields\Config - Extends:
GF_Config
Methods
| Method | Description |
|---|---|
script_to_localize() | Get the script to localize based on context. |
should_enqueue() | Determines if the config data should be enqueued. |
get_international_phone_config() | Get the international phone field configuration. |
data() | Config data. |
enable_ajax() | Enable ajax loading for the "gform_theme_config/fields/phone/international" config path. |
Method Reference
script_to_localize()
public function script_to_localize()
Get the script to localize based on context.
Returns
string
Source: includes/fields/config/class-gf-field-phone-frontend-config.php:36
should_enqueue()
public function should_enqueue()
Determines if the config data should be enqueued.
Returns
bool
Source: includes/fields/config/class-gf-field-phone-frontend-config.php:48
get_international_phone_config()
public static function get_international_phone_config()
Get the international phone field configuration.
Returns
array— The configuration array for international phone field.
Source: includes/fields/config/class-gf-field-phone-frontend-config.php:99
data()
public function data()
Config data.
Returns
array
Source: includes/fields/config/class-gf-field-phone-frontend-config.php:120
enable_ajax()
public function enable_ajax( $config_path, $args )
Enable ajax loading for the "gform_theme_config/fields/phone/international" config path.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$config_path | string | The full path to the config item. | |
$args | array | The args used to load the config data. |
Returns
bool
Source: includes/fields/config/class-gf-field-phone-frontend-config.php:153