1 | <?php namespace Propaganistas\LaravelTranslatableBootForms\Form; |
||
5 | class FormBuilder extends _FormBuilder |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * Array of locale keys. |
||
10 | * |
||
11 | * @var array |
||
12 | */ |
||
13 | protected $locales; |
||
14 | |||
15 | /** |
||
16 | * Sets the available locales for translatable fields. |
||
17 | * |
||
18 | * @param array $locales |
||
19 | */ |
||
20 | 42 | public function setLocales(array $locales) |
|
24 | |||
25 | /** |
||
26 | * Getting value from Model or ModelTranslation to populate form. |
||
27 | * Courtesy of TypiCMS/TranslatableBootForms (https://github.com/TypiCMS/TranslatableBootForms/blob/master/src/TranslatableFormBuilder.php) |
||
28 | * |
||
29 | * @param string $name key |
||
30 | * @return string value |
||
31 | */ |
||
32 | 4 | protected function getBoundValue($name, $default) |
|
46 | } |
||
47 |