| 1 | <?php |
||
| 20 | trait RenderAwareMethods |
||
| 21 | { |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Returns the HTML string for current element |
||
| 25 | * |
||
| 26 | * @param array $context |
||
| 27 | * |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | 20 | public function render($context = []) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Returns the HTML string for this element |
||
| 38 | * |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | 16 | public function __toString() |
|
| 45 | |||
| 46 | /** |
||
| 47 | * Gets the HTML renderer for this element |
||
| 48 | * |
||
| 49 | * @return RendererInterface |
||
| 50 | */ |
||
| 51 | abstract protected function getRenderer(); |
||
| 52 | |||
| 53 | } |