Gravity_Forms\Gravity_Forms\Theme_Layers\API\View
Class used to handle overriding the content of a field or form.
Since: 2.7
Source: includes/theme-layers/api/views/class-view.php:12
Details
- Kind:
class - Namespace:
Gravity_Forms\Gravity_Forms\Theme_Layers\API
Methods
| Method | Description |
|---|---|
__construct() | The Output_Engine for PHP Markup. |
get_markup() | Get the markup for an item. |
should_override() | Whether this markup override should be in effect. |
Method Reference
__construct()
public function __construct( $engine )
The Output_Engine for PHP Markup.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$engine | PHP_Markup_Output_Engine |
Since: 2.7
Source: includes/theme-layers/api/views/class-view.php:23
get_markup()
abstract public function get_markup( $content, $object, $value, $lead_id, $form_id )
Get the markup for an item.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$content | |||
$object | |||
$value | |||
$lead_id | |||
$form_id |
Returns
string
Since: 2.7
Source: includes/theme-layers/api/views/class-view.php:40
should_override()
public function should_override( $object, $form_id, $block_settings=[] )
Whether this markup override should be in effect.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$object | |||
$form_id | |||
$block_settings | [] |
Returns
bool
Since: 2.7
Source: includes/theme-layers/api/views/class-view.php:53