‪TYPO3CMS  9.5
ContentObjectRendererTestTrait.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types = 1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
24 {
28  private function ‪getLibParseFunc_RTE(): array
29  {
30  return [
31  'parseFunc' => '',
32  'parseFunc.' => [
33  'allowTags' => 'a, abbr, acronym, address, article, aside, b, bdo, big, blockquote, br, caption, center, cite, code, col, colgroup, dd, del, dfn, dl, div, dt, em, font, footer, header, h1, h2, h3, h4, h5, h6, hr, i, img, ins, kbd, label, li, link, meta, nav, ol, p, pre, q, samp, sdfield, section, small, span, strike, strong, style, sub, sup, table, thead, tbody, tfoot, td, th, tr, title, tt, u, ul, var',
34  'constants' => '1',
35  'denyTags' => '*',
36  'externalBlocks' => 'article, aside, blockquote, div, dd, dl, footer, header, nav, ol, section, table, ul, pre',
37  'externalBlocks.' => [
38  'article.' => [
39  'callRecursive' => '1',
40  'stripNL' => '1',
41  ],
42  'aside.' => [
43  'callRecursive' => '1',
44  'stripNL' => '1',
45  ],
46  'blockquote.' => [
47  'callRecursive' => '1',
48  'stripNL' => '1',
49  ],
50  'dd.' => [
51  'callRecursive' => '1',
52  'stripNL' => '1',
53  ],
54  'div.' => [
55  'callRecursive' => '1',
56  'stripNL' => '1',
57  ],
58  'dl.' => [
59  'callRecursive' => '1',
60  'stripNL' => '1',
61  ],
62  'footer.' => [
63  'callRecursive' => '1',
64  'stripNL' => '1',
65  ],
66  'header.' => [
67  'callRecursive' => '1',
68  'stripNL' => '1',
69  ],
70  'nav.' => [
71  'callRecursive' => '1',
72  'stripNL' => '1',
73  ],
74  'ol.' => [
75  'callRecursive' => '1',
76  'stripNL' => '1',
77  ],
78  'section.' => [
79  'callRecursive' => '1',
80  'stripNL' => '1',
81  ],
82  'table.' => [
83  'HTMLtableCells' => '1',
84  'HTMLtableCells.' => [
85  'addChr10BetweenParagraphs' => '1',
86  'default.' => [
87  'stdWrap.' => [
88  'parseFunc' => '=< lib.parseFunc_RTE',
89  'parseFunc.' => [
90  'nonTypoTagStdWrap.' => [
91  'encapsLines.' => [
92  'nonWrappedTag' => '',
93  ],
94  ],
95  ],
96  ],
97  ],
98  ],
99  'stdWrap.' => [
100  'HTMLparser' => '1',
101  'HTMLparser.' => [
102  'keepNonMatchedTags' => '1',
103  'tags.' => [
104  'table.' => [
105  'fixAttrib.' => [
106  'class.' => [
107  'always' => '1',
108  'default' => 'contenttable',
109  'list' => 'contenttable',
110  ],
111  ],
112  ],
113  ],
114  ],
115  ],
116  'stripNL' => '1',
117  ],
118  'ul.' => [
119  'callRecursive' => '1',
120  'stripNL' => '1',
121  ],
122  ],
123  'makelinks' => '1',
124  'makelinks.' => [
125  'http.' => [
126  'extTarget.' => [
127  'override' => '_blank',
128  ],
129  'keep' => 'path',
130  ],
131  ],
132  'nonTypoTagStdWrap.' => [
133  'encapsLines.' => [
134  'addAttributes.' => [
135  'P.' => [
136  'class' => 'bodytext',
137  'class.' => [
138  'setOnly' => 'blank',
139  ],
140  ],
141  ],
142  'encapsTagList' => 'p,pre,h1,h2,h3,h4,h5,h6,hr,dt,li',
143  'innerStdWrap_all.' => [
144  'ifBlank' => '&nbsp;',
145  ],
146  'nonWrappedTag' => 'P',
147  'remapTag.' => [
148  'DIV' => 'P',
149  ],
150  ],
151  'HTMLparser' => '1',
152  'HTMLparser.' => [
153  'htmlSpecialChars' => '2',
154  'keepNonMatchedTags' => '1',
155  ],
156  ],
157  'sword' => '<span class="csc-sword">|</span>',
158  'tags.' => [
159  'link' => 'TEXT',
160  'link.' => [
161  'current' => '1',
162  'parseFunc.' => [
163  'constants' => '1',
164  ],
165  'typolink.' => [
166  'directImageLink' => false,
167  'extTarget.' => [
168  'override' => '',
169  ],
170  'parameter.' => [
171  'data' => 'parameters : allParams',
172  ],
173  'target.' => [
174  'override' => '',
175  ],
176  ],
177  ],
178  ],
179  ],
180  ];
181  }
182 }
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTestTrait\getLibParseFunc_RTE
‪array getLibParseFunc_RTE()
Definition: ContentObjectRendererTestTrait.php:28
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTestTrait
Definition: ContentObjectRendererTestTrait.php:24
‪TYPO3\CMS\Frontend\Tests\Unit\ContentObject
Definition: CaseContentObjectTest.php:4