GravityKit\GravityFormsElementorWidget\Widget
Gravity Forms widget for Elementor.
Integrates Gravity Forms with Elementor page builder.
Since: 1.0.0
Source: src/Widget.php:32
Details
- Kind:
class - Namespace:
GravityKit\GravityFormsElementorWidget - Extends:
Widget_Base
Methods
| Method | Description |
|---|---|
get_name() | Retrieves Gravity Forms widget name. |
get_title() | Retrieves Gravity Forms widget title. |
get_categories() | Retrieves the list of categories the Gravity Forms widget belongs to. |
get_keywords() | Retrieves Gravity Forms widget keywords. |
get_icon() | Returns widget icon. |
get_custom_icon() | Returns widget custom icon. |
get_default_theme() | Returns the theme Gravity Forms uses for a form that doesn't choose one. |
get_block_attributes() | Returns the attributes the Gravity Forms form block would save for the same settings. |
enqueue_editor_styles() | Enqueues editor styles. |
Method Reference
get_name()
public function get_name()
Retrieves Gravity Forms widget name.
Returns
string— Widget name.
Since: 1.0.0
Source: src/Widget.php:51
get_title()
public function get_title()
Retrieves Gravity Forms widget title.
Returns
string— Widget title.
Since: 1.0.0
Source: src/Widget.php:64
get_categories()
public function get_categories()
Retrieves the list of categories the Gravity Forms widget belongs to.
Returns
array— Widget categories.
Since: 1.0.0
Source: src/Widget.php:77
get_keywords()
public function get_keywords()
Retrieves Gravity Forms widget keywords.
Returns
array— Widget keywords.
Since: 1.0.0
Source: src/Widget.php:90
get_icon()
public function get_icon()
Returns widget icon.
Returns
string— Widget icon.
Since: 1.0.0
Source: src/Widget.php:109
get_custom_icon()
public static function get_custom_icon()
Returns widget custom icon.
Returns
string— Widget custom icon.
Since: 1.0.0
Source: src/Widget.php:122
get_default_theme()
public static function get_default_theme()
Returns the theme Gravity Forms uses for a form that doesn't choose one.
Reads Gravity Forms' option directly: GFForms::get_default_theme() only exists from Gravity Forms 2.9.
Returns
string— Theme slug.
Since: TBD
Source: src/Widget.php:661
get_block_attributes()
public static function get_block_attributes( $form_id, $settings )
Returns the attributes the Gravity Forms form block would save for the same settings.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$form_id | int | Form ID. | |
$settings | array | Saved widget settings, merged with control defaults. |
Returns
array— Attributes in the block's registration order.
Since: TBD
Source: src/Widget.php:675
enqueue_editor_styles()
public static function enqueue_editor_styles()
Enqueues editor styles.
Since: 1.0.0
Source: src/Widget.php:860