Skip to main content

Gravity_Forms\Gravity_Forms\Template_Library\Templates\GF_Template_Library_Template

Class GF_Template_Library_Template

Represents Template library.

Source: includes/template-library/templates/class-gf-template-library-template.php:13

Details

  • Kind: class
  • Namespace: Gravity_Forms\Gravity_Forms\Template_Library\Templates

Properties

PropertyTypeDescription
$dataarrayThe template raw data.
$idstringThe id of the template.
$titlestringThe name of the template.
$descriptionstringThe description of the template.
$form_metaarrayThe form meta data.

Methods

MethodDescription
__construct()Template constructor.
get_title()Returns the template title.
get_description()Returns the template description.
get_form_meta()Returns the template form meta.
get_id()Returns the template ID.

Method Reference

__construct()

public function __construct( $data )

Template constructor.

Parameters

NameTypeDefaultDescription
$dataarrayThe template data.

Source: includes/template-library/templates/class-gf-template-library-template.php:66

get_title()

public function get_title()

Returns the template title.

Returns

  • string

Source: includes/template-library/templates/class-gf-template-library-template.php:77

get_description()

public function get_description()

Returns the template description.

Returns

  • string

Source: includes/template-library/templates/class-gf-template-library-template.php:92

get_form_meta()

public function get_form_meta()

Returns the template form meta.

Returns

  • array

Source: includes/template-library/templates/class-gf-template-library-template.php:107

get_id()

public function get_id()

Returns the template ID.

Returns

  • string

Source: includes/template-library/templates/class-gf-template-library-template.php:122