Conditions | 1 |
Paths | 1 |
Total Lines | 29 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
19 | public function __construct(DIInterface $di) |
||
20 | { |
||
21 | parent::__construct($di); |
||
22 | $this->form->create( |
||
23 | [ |
||
24 | "id" => __CLASS__, |
||
25 | // "legend" => "Details of the item", |
||
26 | ], |
||
27 | [ |
||
28 | "email" => [ |
||
29 | "type" => "text", |
||
30 | "label" => "E-mail:", |
||
31 | "validation" => ["not_empty"], |
||
32 | ], |
||
33 | "text" => [ |
||
34 | "type" => "textarea", |
||
35 | "label" => "Comment:", |
||
36 | "class" => "comment-section", |
||
37 | "validation" => ["not_empty"], |
||
38 | ], |
||
39 | |||
40 | "submit" => [ |
||
41 | "type" => "submit", |
||
42 | "value" => "Publish", |
||
43 | "callback" => [$this, "callbackSubmit"] |
||
44 | ], |
||
45 | ] |
||
46 | ); |
||
47 | } |
||
48 | |||
67 |