| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
namespace JFB_Modules\Validation\Messages; |
| 5 |
|
| 6 |
use Jet_Form_Builder\Blocks\Types\Text_Field; |
| 7 |
|
| 8 |
// If this file is called directly, abort. |
| 9 |
if ( ! defined( 'WPINC' ) ) { |
| 10 |
die; |
| 11 |
} |
| 12 |
|
| 13 |
class Is_Not_Complete_Mask extends Base_Message { |
| 14 |
|
| 15 |
public function get_id(): string { |
| 16 |
return 'inputmask'; |
| 17 |
} |
| 18 |
|
| 19 |
public function supported_blocks(): array { |
| 20 |
return array( |
| 21 |
Text_Field::class, |
| 22 |
); |
| 23 |
} |
| 24 |
|
| 25 |
public function get_label(): string { |
| 26 |
return __( 'Input mask is not completed', 'jet-form-builder' ); |
| 27 |
} |
| 28 |
|
| 29 |
public function get_initial(): string { |
| 30 |
return __( 'Please fill in the field according to the input mask.', 'jet-form-builder' ); |
| 31 |
} |
| 32 |
} |
| 33 |
|