| 1 | <?php |
||
| 10 | class Link extends StringField implements EntityAwareInterface, TwigAwareInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var Object |
||
| 14 | */ |
||
| 15 | protected $entity; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Render link template filled with configured options. |
||
| 19 | * |
||
| 20 | * @param mixed $value |
||
| 21 | * @return string |
||
| 22 | */ |
||
| 23 | 2 | public function render($value) |
|
| 44 | |||
| 45 | /** |
||
| 46 | * Define field type. |
||
| 47 | * |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | public function getType() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Define entity. It will be use to fill parameters with properties values. |
||
| 57 | * |
||
| 58 | * @param $entity |
||
| 59 | */ |
||
| 60 | public function setEntity($entity) |
||
| 64 | |||
| 65 | /** |
||
| 66 | * Return the Field's configuration class. |
||
| 67 | * |
||
| 68 | * @return string |
||
| 69 | */ |
||
| 70 | public function getConfigurationClass() |
||
| 74 | } |
||
| 75 |