Constructor.
Description
See also
Parameters
- $manager
-
(awsmug\Torro_Forms\DB_Objects\Elements\Element_Types\Element_Type_Manager) (Required) The element type manager instance.
Source
File: src/db-objects/elements/element-types/element-type.php
public function __construct( $manager ) { $this->manager = $manager; $this->settings_sections = array( 'content' => array( 'title' => _x( 'Content', 'element type section', 'torro-forms' ), ), 'settings' => array( 'title' => _x( 'Settings', 'element type section', 'torro-forms' ), ), ); $this->settings_fields = array( 'label' => array( 'section' => 'content', 'type' => 'text', 'label' => __( 'Label', 'torro-forms' ), 'description' => __( 'Enter the form field label.', 'torro-forms' ), 'input_classes' => array( 'regular-text' ), 'is_label' => true, ), ); $this->bootstrap(); $this->sanitize_settings_sections(); $this->sanitize_settings_fields(); }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |