bd 12.0
This commit is contained in:
@ -22,4 +22,18 @@ class InputTypeModel extends Model
|
||||
protected $hidden = [
|
||||
|
||||
];
|
||||
|
||||
public static function getViewNameByTypeId(int $id): ?string
|
||||
{
|
||||
$fields = [
|
||||
1 => '_checkBox',
|
||||
2 => '_text_input',
|
||||
3 => '_textarea',
|
||||
4 => '_radioButton',
|
||||
5 => '_button',
|
||||
6 => '_select'
|
||||
];
|
||||
|
||||
return $fields[$id] ?? null;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user