| 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) |
|
| 46 | |||
| 47 | /** |
||
| 48 | * Configure options resolver. |
||
| 49 | * |
||
| 50 | * @param OptionsResolver $resolver |
||
| 51 | */ |
||
| 52 | 2 | public function configureOptions(OptionsResolver $resolver) |
|
| 60 | |||
| 61 | /** |
||
| 62 | * Return form type. |
||
| 63 | * |
||
| 64 | * @return string |
||
| 65 | */ |
||
| 66 | public function getType() |
||
| 70 | } |
||
| 71 |