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
| Property | Type | Description |
|---|---|---|
$data | array | The template raw data. |
$id | string | The id of the template. |
$title | string | The name of the template. |
$description | string | The description of the template. |
$form_meta | array | The form meta data. |
Methods
| Method | Description |
|---|---|
__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
| Name | Type | Default | Description |
|---|---|---|---|
$data | array | The 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