‪TYPO3CMS  10.4
AbstractBackendController.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 
25 
33 {
34 
38  protected ‪$formSettings;
39 
44 
50  {
51  $this->formPersistenceManager = ‪$formPersistenceManager;
52  }
53 
57  public function ‪initializeObject()
58  {
59  $this->formSettings = $this->objectManager->get(ConfigurationManagerInterface::class)
61  }
62 
80  protected function ‪resolveResourcePaths(array $resourcePaths): array
81  {
82  $return = [];
83  foreach ($resourcePaths as $resourcePath) {
84  $fullResourcePath = GeneralUtility::getFileAbsFileName($resourcePath);
85  $resourcePath = ‪PathUtility::getAbsoluteWebPath($fullResourcePath);
86  if (empty($resourcePath)) {
87  continue;
88  }
89  $return[] = $resourcePath;
90  }
91 
92  return $return;
93  }
94 }
‪TYPO3\CMS\Form\Controller\AbstractBackendController\initializeObject
‪initializeObject()
Definition: AbstractBackendController.php:55
‪TYPO3\CMS\Core\Utility\PathUtility
Definition: PathUtility.php:24
‪TYPO3\CMS\Form\Controller\AbstractBackendController\injectFormPersistenceManager
‪injectFormPersistenceManager(FormPersistenceManagerInterface $formPersistenceManager)
Definition: AbstractBackendController.php:47
‪TYPO3\CMS\Form\Controller\AbstractBackendController\resolveResourcePaths
‪array resolveResourcePaths(array $resourcePaths)
Definition: AbstractBackendController.php:78
‪TYPO3\CMS\Form\Controller
Definition: AbstractBackendController.php:18
‪TYPO3\CMS\Form\Controller\AbstractBackendController\$formSettings
‪array $formSettings
Definition: AbstractBackendController.php:37
‪TYPO3\CMS\Form\Controller\AbstractBackendController\$formPersistenceManager
‪TYPO3 CMS Form Mvc Persistence FormPersistenceManagerInterface $formPersistenceManager
Definition: AbstractBackendController.php:41
‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
Definition: ActionController.php:55
‪TYPO3\CMS\Form\Mvc\Configuration\ConfigurationManagerInterface\CONFIGURATION_TYPE_YAML_SETTINGS
‪const CONFIGURATION_TYPE_YAML_SETTINGS
Definition: ConfigurationManagerInterface.php:30
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:46
‪TYPO3\CMS\Form\Mvc\Persistence\FormPersistenceManagerInterface
Definition: FormPersistenceManagerInterface.php:32
‪TYPO3\CMS\Core\Utility\PathUtility\getAbsoluteWebPath
‪static string getAbsoluteWebPath($targetPath)
Definition: PathUtility.php:43
‪TYPO3\CMS\Form\Controller\AbstractBackendController
Definition: AbstractBackendController.php:33
‪TYPO3\CMS\Form\Mvc\Configuration\ConfigurationManagerInterface
Definition: ConfigurationManagerInterface.php:29