Gravity_Forms\Gravity_Forms\Theme_Layers\Framework\Traits\Enqueues_Assets
Source: includes/theme-layers/framework/traits/trait-enqueues-assets.php:7
Details
- Kind:
trait - Namespace:
Gravity_Forms\Gravity_Forms\Theme_Layers\Framework\Traits
Methods
| Method | Description |
|---|---|
scripts() | Provides an array of scripts to be enqueued for the form. |
styles() | Provides an array of styles to be enqueued for the form. |
add_engine_asset_enqueues() | Add the engine. |
Method Reference
scripts()
abstract public function scripts( $form, $ajax, $settings, $block_settings=[] )
Provides an array of scripts to be enqueued for the form.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$form | The Form being processed. | ||
$ajax | Whether this is an AJAX request. | ||
$settings | The current settings for this form. | ||
$block_settings | [] | The current block settings for this form. |
Returns
array
Since: 2.7
Source: includes/theme-layers/framework/traits/trait-enqueues-assets.php:21
styles()
abstract public function styles( $form, $ajax, $settings, $block_settings=[] )
Provides an array of styles to be enqueued for the form.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$form | The Form being processed. | ||
$ajax | Whether this is an AJAX request. | ||
$settings | The current settings for this form. | ||
$block_settings | [] | The current block settings for this form. |
Returns
array
Since: 2.7
Source: includes/theme-layers/framework/traits/trait-enqueues-assets.php:35
add_engine_asset_enqueues()
public function add_engine_asset_enqueues()
Add the engine.
Returns
void
Since: 2.7
Source: includes/theme-layers/framework/traits/trait-enqueues-assets.php:44