[TASK] Adjust contrast colors in diff view
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / master / Feature-68538-IntroducedImplodeViewHelper.rst
1 ==============================================
2 Feature: #68538 - Introduced ImplodeViewHelper
3 ==============================================
4
5 Description
6 ===========
7
8 To be able to glue a array of strings together (f.i. to build a class attribute value) the ``f:format.implode`` ViewHelper is added.
9
10 ViewHelper parameters:
11 - array $values: array of elements to join
12 - string $glue: String used as glue between elements (default: space)
13 - bool $excludeEmptyValues: Remove empty elements (default: TRUE)
14
15
16 Examples
17 ========
18
19 Some examples of using ``fe:format.implode``:
20
21 .. code-block:: html
22
23 <fe:format.implode values="{0: 'className-1', 1: 'className-2'}" />
24
25 Output: ``className-1 className-2``
26
27
28 .. code-block:: html
29
30 <div class="{fe:format.implode(values:'{0:\'className-1\', 1:\'className-2\'}')}">Foo</div>
31
32 Output: ``<div class="className-1 className-2">Foo</div>``