base-message.php
3 years ago
is-char-max.php
3 years ago
is-char-min.php
3 years ago
is-date-max.php
3 years ago
is-date-min.php
3 years ago
is-empty-value.php
3 years ago
is-file-ext.php
3 years ago
is-file-size.php
3 years ago
is-files-max.php
3 years ago
is-not-complete-mask.php
3 years ago
is-not-valid-email.php
3 years ago
is-not-valid-url.php
3 years ago
is-number-max.php
3 years ago
is-number-min.php
3 years ago
is-not-valid-url.php
31 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Blocks\Validation_Messages; |
| 5 | |
| 6 | |
| 7 | use Jet_Form_Builder\Blocks\Types\Text_Field; |
| 8 | |
| 9 | class Is_Not_Valid_Url extends Base_Message { |
| 10 | |
| 11 | public function get_id(): string { |
| 12 | return 'url'; |
| 13 | } |
| 14 | |
| 15 | public function get_label(): string { |
| 16 | return __( 'URL is not valid', 'jet-form-builder' ); |
| 17 | } |
| 18 | |
| 19 | public function supported_blocks(): array { |
| 20 | return array( |
| 21 | Text_Field::class, |
| 22 | ); |
| 23 | } |
| 24 | |
| 25 | public function get_initial(): string { |
| 26 | return __( |
| 27 | 'Please enter a valid URL.', |
| 28 | 'jet-form-builder' |
| 29 | ); |
| 30 | } |
| 31 | } |