[FEATURE] Allow unit string as viewhelper argument 89/49289/8
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Mon, 1 Aug 2016 15:50:56 +0000 (17:50 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 2 Aug 2016 14:40:22 +0000 (16:40 +0200)
commit79aed12850cdae947c2338163789d23a2636c4a4
tree23bf55af03f32706ed76bdb54481f11008ef2c9d
parent52ca96d73f67017dbd9d5480df1c0e9ec6344dfa
[FEATURE] Allow unit string as viewhelper argument

The ByteViewHelper accepts a parameter 'units' in order to provide
a custom collection of units.

Resolves: #77336
Releases: master
Change-Id: I58a6609eb1d1c8eba1e2610430c20c576481488b
Reviewed-on: https://review.typo3.org/49289
Reviewed-by: Sebastian Bumann <bumann.sebastian@gmail.com>
Tested-by: Sebastian Bumann <bumann.sebastian@gmail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Documentation/Changelog/master/Feature-77336-AllowPassingAnOwnUnitCollectionToByteViewHelper.rst [new file with mode: 0644]
typo3/sysext/fluid/Classes/ViewHelpers/Format/BytesViewHelper.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/BytesViewHelperTest.php