67 public function render($for =
'', $as =
'error') {
68 $errors = $this->controllerContext->getRequest()->getErrors();
69 if ($for !==
'' && $for !== NULL) {
70 $propertyPath = explode(
'.', $for);
71 foreach ($propertyPath as $currentPropertyName) {
76 foreach ($errors as $errorKey => $error) {
77 $this->templateVariableContainer->add($as, $error);
79 $this->templateVariableContainer->remove($as);
92 foreach ($errors as $error) {
93 if ($error instanceof \
TYPO3\CMS\Extbase\Validation\PropertyError) {
94 if ($error->getPropertyName() === $propertyName) {
95 return $error->getErrors();