PHP Class Carbon_Fields\Field\Gravity_Form_Field

Inheritance: extends Select_Field
Show file Open project: htmlburger/carbon-fields

Public Methods

Method Description
admin_init ( ) Admin initialization actions
is_plugin_active ( ) : boolean Whether the Gravity Forms plugin is installed and activated.
setup_gravity_form_options ( ) Set the available forms as field options
template ( ) The main Underscore template of this field.
to_json ( boolean $load ) : array Returns an array that holds the field data, suitable for JSON representation.

Method Details

admin_init() public method

Admin initialization actions
public admin_init ( )

is_plugin_active() public method

Whether the Gravity Forms plugin is installed and activated.
public is_plugin_active ( ) : boolean
return boolean

setup_gravity_form_options() public method

Set the available forms as field options

template() public method

The main Underscore template of this field.
public template ( )

to_json() public method

This data will be available in the Underscore template and the Backbone Model.
public to_json ( boolean $load ) : array
$load boolean Should the value be loaded from the database or use the value from the current instance.
return array