PluginProbe
JetFormBuilder — Dynamic Blocks Form Builder / 3.6.5.2
JetFormBuilder — Dynamic Blocks Form Builder v3.6.5.2
3.6.5.2 3.6.5.1 3.6.5 3.6.4.2 3.6.4.1 3.6.4 3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 All 130 releases
jetformbuilder / modules / validation / messages / is-char-min.php
is-char-min.php
39 lines 821 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3
4 namespace JFB_Modules\Validation\Messages;
5
6 use Jet_Form_Builder\Blocks\Types\Text_Field;
7 use Jet_Form_Builder\Blocks\Types\Textarea_Field;
8 use Jet_Form_Builder\Blocks\Types\Wysiwyg_Field;
9
10 // If this file is called directly, abort.
11 if ( ! defined( 'WPINC' ) ) {
12 die;
13 }
14
15 class Is_Char_Min extends Base_Message {
16
17 public function get_id(): string {
18 return 'char_min';
19 }
20
21 public function get_label(): string {
22 return __( 'Not enough characters', 'jet-form-builder' );
23 }
24
25 public function supported_blocks(): array {
26 return array(
27 Text_Field::class,
28 Textarea_Field::class,
29 );
30 }
31
32 public function get_initial(): string {
33 return __(
34 'Please increase the text length to at least %this(minLength)% characters (you are currently using %this|length% characters).',
35 'jet-form-builder'
36 );
37 }
38 }
39