These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Amarkal\Taxonomy; |
||
4 | |||
5 | class EditField |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
6 | extends \Amarkal\UI\AbstractComponent |
||
7 | { |
||
8 | public function default_model() |
||
9 | { |
||
10 | return array( |
||
11 | 'type' => '', |
||
12 | 'label' => '', |
||
13 | 'description' => '' |
||
14 | ); |
||
15 | } |
||
16 | |||
17 | protected function on_created() |
||
18 | { |
||
19 | $this->model['value'] = \get_term_meta($this->term_id, $this->name, true); |
||
20 | } |
||
21 | |||
22 | public function get_template_path() |
||
23 | { |
||
24 | return __DIR__.'/EditField.phtml'; |
||
25 | } |
||
26 | } |