‪TYPO3CMS  9.5
AbstractBackendController.php
Go to the documentation of this file.
1 <?php
2 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 
22 
30 {
31 
35  protected ‪$formSettings;
36 
41 
46  public function ‪injectFormPersistenceManager(\‪TYPO3\CMS\Form\Mvc\Persistence\FormPersistenceManagerInterface ‪$formPersistenceManager)
47  {
48  $this->formPersistenceManager = ‪$formPersistenceManager;
49  }
50 
54  public function ‪initializeObject()
55  {
56  $this->formSettings = $this->objectManager->get(ConfigurationManagerInterface::class)
58  }
59 
77  protected function ‪resolveResourcePaths(array $resourcePaths): array
78  {
79  $return = [];
80  foreach ($resourcePaths as $resourcePath) {
81  $fullResourcePath = GeneralUtility::getFileAbsFileName($resourcePath);
82  $resourcePath = ‪PathUtility::getAbsoluteWebPath($fullResourcePath);
83  if (empty($resourcePath)) {
84  continue;
85  }
86  $return[] = $resourcePath;
87  }
88 
89  return $return;
90  }
91 }
‪TYPO3\CMS\Form\Controller\AbstractBackendController\initializeObject
‪initializeObject()
Definition: AbstractBackendController.php:52
‪TYPO3\CMS\Core\Utility\PathUtility
Definition: PathUtility.php:23
‪TYPO3
‪TYPO3\CMS\Form\Controller\AbstractBackendController\resolveResourcePaths
‪array resolveResourcePaths(array $resourcePaths)
Definition: AbstractBackendController.php:75
‪TYPO3\CMS\Form\Controller
Definition: AbstractBackendController.php:3
‪TYPO3\CMS\Form\Controller\AbstractBackendController\injectFormPersistenceManager
‪injectFormPersistenceManager(\TYPO3\CMS\Form\Mvc\Persistence\FormPersistenceManagerInterface $formPersistenceManager)
Definition: AbstractBackendController.php:44
‪TYPO3\CMS\Form\Controller\AbstractBackendController\$formSettings
‪array $formSettings
Definition: AbstractBackendController.php:34
‪TYPO3\CMS\Form\Controller\AbstractBackendController\$formPersistenceManager
‪TYPO3 CMS Form Mvc Persistence FormPersistenceManagerInterface $formPersistenceManager
Definition: AbstractBackendController.php:38
‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
Definition: ActionController.php:31
‪TYPO3\CMS\Form\Mvc\Configuration\ConfigurationManagerInterface\CONFIGURATION_TYPE_YAML_SETTINGS
‪const CONFIGURATION_TYPE_YAML_SETTINGS
Definition: ConfigurationManagerInterface.php:28
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:45
‪TYPO3\CMS\Core\Utility\PathUtility\getAbsoluteWebPath
‪static string getAbsoluteWebPath($targetPath)
Definition: PathUtility.php:42
‪TYPO3\CMS\Form\Controller\AbstractBackendController
Definition: AbstractBackendController.php:30
‪TYPO3\CMS\Form\Mvc\Configuration\ConfigurationManagerInterface
Definition: ConfigurationManagerInterface.php:27