Conditions | 1 |
Paths | 1 |
Total Lines | 29 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
17 | public function __construct(DIInterface $di) |
||
18 | { |
||
19 | parent::__construct($di); |
||
20 | $this->form->create( |
||
21 | [ |
||
22 | "id" => __CLASS__, |
||
23 | "legend" => "Legend", |
||
24 | ], |
||
25 | [ |
||
26 | "mail1" => [ |
||
27 | "type" =>"text", |
||
28 | "label" => "Email (as input type=text)", |
||
29 | "validation" => ["email"], |
||
30 | ], |
||
31 | |||
32 | "mail2" => [ |
||
33 | "type" =>"email", |
||
34 | "label" => "Email (as input type=email)", |
||
35 | "validation" => ["email"], |
||
36 | ], |
||
37 | |||
38 | "submit" => [ |
||
39 | "type" => "submit", |
||
40 | "value" => "Submit", |
||
41 | "callback" => [$this, "callbackSubmit"] |
||
42 | ], |
||
43 | ] |
||
44 | ); |
||
45 | } |
||
46 | |||
65 |