‪TYPO3CMS  10.4
CmsLayout.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 
21 
29 {
40  public function ‪preProcess(‪PageLayoutView &$parentObject, &$drawItem, &$headerContent, &$itemContent, array &$row)
41  {
42  if ($row['CType'] !== 'login') {
43  return;
44  }
45  trigger_error(
46  'The pibase felogin plugin is deprecated since TYPO3 10.4 and will be removed in version 11.0',
47  E_USER_DEPRECATED
48  );
49  $drawItem = false;
50  $itemContent .= $parentObject->‪linkEditContent(
51  '<strong>' . htmlspecialchars(
52  $this->‪getLanguageService()->sL(
53  'LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:forms_login_title'
54  )
55  ) . '</strong>',
56  $row
57  );
58  }
59 
61  {
62  return ‪$GLOBALS['LANG'] ?? null;
63  }
64 }
‪TYPO3\CMS\FrontendLogin\Hooks
Definition: CmsLayout.php:16
‪TYPO3\CMS\FrontendLogin\Hooks\CmsLayout\preProcess
‪preProcess(PageLayoutView &$parentObject, &$drawItem, &$headerContent, &$itemContent, array &$row)
Definition: CmsLayout.php:40
‪TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface
Definition: PageLayoutViewDrawItemHookInterface.php:23
‪TYPO3\CMS\FrontendLogin\Hooks\CmsLayout\getLanguageService
‪getLanguageService()
Definition: CmsLayout.php:60
‪TYPO3\CMS\FrontendLogin\Hooks\CmsLayout
Definition: CmsLayout.php:29
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:5
‪TYPO3\CMS\Backend\View\PageLayoutView
Definition: PageLayoutView.php:61
‪TYPO3\CMS\Backend\View\PageLayoutView\linkEditContent
‪string linkEditContent($str, $row)
Definition: PageLayoutView.php:1517
‪TYPO3\CMS\Core\Localization\LanguageService
Definition: LanguageService.php:42