[TASK] Add attribute "placeholder" to PasswordViewHelper 02/53502/2
authorDaniel Diesenreither <d.diesenreither@gmail.com>
Fri, 14 Jul 2017 21:58:07 +0000 (23:58 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Sat, 15 Jul 2017 07:30:13 +0000 (09:30 +0200)
Resolves: #81873
Releases: master, 8.7
Change-Id: I99af134d1d6afe14c66de7a950da5f73bee1c1bb
Reviewed-on: https://review.typo3.org/53502
Reviewed-by: Philipp Gampe <philipp.gampe@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/fluid/Classes/ViewHelpers/Form/PasswordViewHelper.php

index ae87e9f..30e4e42 100644 (file)
@@ -49,6 +49,7 @@ class PasswordViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormF
         $this->registerTagAttribute(
             'maxlength', 'int', 'The maxlength attribute of the input field (will not be validated)'
         );
+        $this->registerTagAttribute('placeholder', 'string', 'The placeholder of the textfield');
         $this->registerTagAttribute('readonly', 'string', 'The readonly attribute of the input field');
         $this->registerTagAttribute('size', 'int', 'The size of the input field');
         $this->registerArgument(