Skip to main content

Gravity_Forms\Gravity_Forms\Theme_Layers\Framework\GF_Theme_Layer

GF_Theme_Layer

Provides base functionality for any system which needs to implement a Theme Layer. Can either be directly extended or used via the API.

Since: 2.7

Source: includes/theme-layers/framework/class-gf-theme-layer.php:17

Details

  • Kind: class
  • Namespace: Gravity_Forms\Gravity_Forms\Theme_Layers\Framework

Properties

PropertyTypeDescription
$definition_enginesDefinition_Engine[]
$definition_engine_factoryDefinition_Engine_Factory
$output_engine_factoryOutput_Engine_Factory

Methods

MethodDescription
__construct()Constructor
init_engines()Initialize the various engines the current Theme Layer implements.
get_definitions()Get the definitions for this theme layer.
name()Getter for name
priority()Getter for priority
short_title()Getter for short_title
get_form_settings_capability()Getter for form_settings_capability

Method Reference

__construct()

public function __construct( Definition_Engine_Factory $definition_engine_factory, Output_Engine_Factory $output_engine_factory )

Constructor

Parameters

NameTypeDefaultDescription
$definition_engine_factoryDefinition_Engine_Factory
$output_engine_factoryOutput_Engine_Factory

Returns

  • void

Since: 2.7

Source: includes/theme-layers/framework/class-gf-theme-layer.php:52

init_engines()

public function init_engines()

Initialize the various engines the current Theme Layer implements.

Returns

  • void

Since: 2.7

Source: includes/theme-layers/framework/class-gf-theme-layer.php:65

get_definitions()

public function get_definitions()

Get the definitions for this theme layer.

Returns

  • array

Since: 2.7

Source: includes/theme-layers/framework/class-gf-theme-layer.php:97

name()

public function name()

Getter for name

Returns

  • string

Since: 2.7

Source: includes/theme-layers/framework/class-gf-theme-layer.php:117

priority()

public function priority()

Getter for priority

Returns

  • int

Since: 2.7

Source: includes/theme-layers/framework/class-gf-theme-layer.php:128

short_title()

public function short_title()

Getter for short_title

Returns

  • string

Since: 2.7

Source: includes/theme-layers/framework/class-gf-theme-layer.php:139

get_form_settings_capability()

public function get_form_settings_capability()

Getter for form_settings_capability

Returns

  • string

Source: includes/theme-layers/framework/class-gf-theme-layer.php:152