| 1 | <?php |
||
| 6 | class AssetFormHelper |
||
| 7 | { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Generates the hidden field that links the file to a specific type. |
||
| 11 | * |
||
| 12 | * @param string $type |
||
| 13 | * @param null $locale |
||
| 14 | * |
||
| 15 | * @param string $name |
||
| 16 | * @return string |
||
| 17 | */ |
||
| 18 | 3 | public static function typeField($type = '', $locale = null, $name = 'type'): string |
|
| 28 | |||
| 29 | /** |
||
| 30 | * Generates the hidden field that links the file to translations. |
||
| 31 | * |
||
| 32 | * @param string $locale |
||
| 33 | * |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | 1 | public static function localeField($locale = ''): string |
|
| 40 | } |