Skip to main content

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

MethodDescription
__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

NameTypeDefaultDescription
$enginePHP_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

NameTypeDefaultDescription
$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

NameTypeDefaultDescription
$object
$form_id
$block_settings[]

Returns

  • bool

Since: 2.7

Source: includes/theme-layers/api/views/class-view.php:53