| 1 | <?php |
||
| 11 | class SymfonyValidatorExtension extends \Twig_Extension |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * {@inheritdoc} |
||
| 15 | */ |
||
| 16 | 1 | public function getFunctions(): array |
|
| 22 | |||
| 23 | /** |
||
| 24 | * Yields all error messages from given field. |
||
| 25 | * |
||
| 26 | * @param string $field |
||
| 27 | * @param ConstraintViolationListInterface|null $errors |
||
| 28 | * |
||
| 29 | * @return iterable |
||
| 30 | */ |
||
| 31 | 2 | public function error(string $field, ?ConstraintViolationListInterface $errors): iterable |
|
| 44 | } |
||
| 45 |