| 1 | <?php |
||
| 14 | class StringField extends Field |
||
| 15 | { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Render a string that can be truncated according to is length. |
||
| 19 | * |
||
| 20 | * @param $value |
||
| 21 | * @return string |
||
| 22 | */ |
||
| 23 | 2 | public function render($value) |
|
| 44 | |||
| 45 | /** |
||
| 46 | * Configure options resolver. |
||
| 47 | * |
||
| 48 | * @param OptionsResolver $resolver |
||
| 49 | */ |
||
| 50 | 2 | public function configureOptions(OptionsResolver $resolver) |
|
| 58 | |||
| 59 | /** |
||
| 60 | * Return form type. |
||
| 61 | * |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | public function getType() |
||
| 68 | } |
||
| 69 |