‪TYPO3CMS  10.4
TextPreviewRenderer.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
20 
26 {
36  public function ‪preProcess(
37  ‪PageLayoutView &$parentObject,
38  &$drawItem,
39  &$headerContent,
40  &$itemContent,
41  array &$row
42  ) {
43  if ($row['CType'] === 'text') {
44  if ($row['bodytext']) {
45  $itemContent .= $parentObject->‪linkEditContent($parentObject->‪renderText($row['bodytext']), $row) . '<br />';
46  }
47 
48  $drawItem = false;
49  }
50  }
51 }
‪TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface
Definition: PageLayoutViewDrawItemHookInterface.php:23
‪TYPO3\CMS\Frontend\Hooks\PageLayoutView\TextPreviewRenderer\preProcess
‪preProcess(PageLayoutView &$parentObject, &$drawItem, &$headerContent, &$itemContent, array &$row)
Definition: TextPreviewRenderer.php:36
‪TYPO3\CMS\Frontend\Hooks\PageLayoutView\TextPreviewRenderer
Definition: TextPreviewRenderer.php:26
‪TYPO3\CMS\Frontend\Hooks\PageLayoutView
Definition: ImagePreviewRenderer.php:16
‪TYPO3\CMS\Backend\View\PageLayoutView\renderText
‪string renderText($input)
Definition: PageLayoutView.php:1693
‪TYPO3\CMS\Backend\View\PageLayoutView
Definition: PageLayoutView.php:61
‪TYPO3\CMS\Backend\View\PageLayoutView\linkEditContent
‪string linkEditContent($str, $row)
Definition: PageLayoutView.php:1517