Gravity_Forms\Gravity_Forms\Theme_Layers\Framework\Engines\Output_Engines\Output_Engine
Output_Engines are responsible for outputting some sort of value, whether CSS blocks,
markup, or some other theme-layer-related data.
Since: 2.7
Source: includes/theme-layers/framework/engines/output-engines/class-output-engine.php:13
Details
- Kind:
class - Namespace:
Gravity_Forms\Gravity_Forms\Theme_Layers\Framework\Engines\Output_Engines
Methods
| Method | Description |
|---|---|
__construct() | The namespace of the theme layer, passed from the Addon. |
output() | Handle output. |
type() | Getter for type. |
get_settings() | Get the settings stored for this theme layer. |
get_setting() | Get a specific setting for this theme layer. |
parse_form_style() | Parse the settings from the style filter or shortcode attributes. |
Method Reference
__construct()
public function __construct( $namespace )
The namespace of the theme layer, passed from the Addon.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$namespace |
Since: 2.7
Source: includes/theme-layers/framework/engines/output-engines/class-output-engine.php:26
output()
abstract public function output()
Handle output.
Returns
void
Since: 2.7
Source: includes/theme-layers/framework/engines/output-engines/class-output-engine.php:37
type()
public function type()
Getter for type.
Returns
string
Since: 2.7
Source: includes/theme-layers/framework/engines/output-engines/class-output-engine.php:46
get_settings()
public function get_settings( $form_id )
Get the settings stored for this theme layer.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$form_id |
Returns
array|mixed
Since: 2.7
Source: includes/theme-layers/framework/engines/output-engines/class-output-engine.php:59
get_setting()
public function get_setting( $key, $form_id, $default=null )
Get a specific setting for this theme layer.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$key | |||
$form_id | |||
$default | null | null |
Returns
mixed|null
Since: 2.7
Source: includes/theme-layers/framework/engines/output-engines/class-output-engine.php:76
parse_form_style()
public function parse_form_style( $form )
Parse the settings from the style filter or shortcode attributes.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$form |
Returns
array
Since: 2.7.15
Source: includes/theme-layers/framework/engines/output-engines/class-output-engine.php:97