We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08f723e commit 31bb5d4Copy full SHA for 31bb5d4
src/form-fields/field-data.md
@@ -11,12 +11,12 @@ Field data needs to be "returned" by certain methods. These methods are simple:
11
```php
12
class Elementor_Test_Field extends \ElementorPro\Modules\Forms\Fields\Field_Base {
13
14
- public function get_type() {
15
- return 'field_name';
+ public function get_type(): string {
+ return 'field_id';
16
}
17
18
- public function get_name() {
19
- return esc_html__( 'My Field Name', 'textdomain' );
+ public function get_name(): string {
+ return esc_html__( 'My Field Label', 'textdomain' );
20
21
22
0 commit comments