Skip to content

Commit

Permalink
Update field-data.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rami-elementor committed Dec 23, 2024
1 parent 08f723e commit 7a90e63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/form-fields/field-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ Field data needs to be "returned" by certain methods. These methods are simple:
```php
class Elementor_Test_Field extends \ElementorPro\Modules\Forms\Fields\Field_Base {

public function get_type() {
return 'field_name';
public function get_type(): string {
return 'field_id';
}

public function get_name() {
return esc_html__( 'My Field Name', 'textdomain' );
public function get_name(): string {
return esc_html__( 'My Field Label', 'textdomain' );
}

}
Expand Down

0 comments on commit 7a90e63

Please sign in to comment.