‪TYPO3CMS  ‪main
FormYamlProvider.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 
27 {
28  protected string ‪$identifier;
30 
32  {
33  $this->configurationManager = ‪$configurationManager;
34  }
35 
36  public function ‪__invoke(array $attributes): self
37  {
38  $this->identifier = $attributes['identifier'];
39  return $this;
40  }
41 
42  public function ‪getIdentifier(): string
43  {
44  return ‪$this->identifier;
45  }
46 
47  public function ‪getLabel(): string
48  {
49  return $this->‪getLanguageService()->sL(
50  'LLL:EXT:form/Resources/Private/Language/locallang.xlf:form.configuration.module.provider'
51  );
52  }
53 
54  public function ‪getConfiguration(): array
55  {
56  $configuration = $this->configurationManager->getConfiguration(
58  'form'
59  );
60  ArrayUtility::naturalKeySortRecursive($configuration);
61  return $configuration;
62  }
63 
65  {
66  return ‪$GLOBALS['LANG'];
67  }
68 }
‪TYPO3\CMS\Form\ConfigurationModuleProvider\FormYamlProvider\getIdentifier
‪getIdentifier()
Definition: FormYamlProvider.php:42
‪TYPO3\CMS\Form\ConfigurationModuleProvider\FormYamlProvider\getConfiguration
‪getConfiguration()
Definition: FormYamlProvider.php:54
‪TYPO3\CMS\Form\ConfigurationModuleProvider\FormYamlProvider\$identifier
‪string $identifier
Definition: FormYamlProvider.php:28
‪TYPO3\CMS\Form\ConfigurationModuleProvider\FormYamlProvider\getLabel
‪getLabel()
Definition: FormYamlProvider.php:47
‪TYPO3\CMS\Form\ConfigurationModuleProvider\FormYamlProvider\__construct
‪__construct(ConfigurationManager $configurationManager)
Definition: FormYamlProvider.php:31
‪TYPO3\CMS\Form\ConfigurationModuleProvider\FormYamlProvider
Definition: FormYamlProvider.php:27
‪TYPO3\CMS\Form\ConfigurationModuleProvider\FormYamlProvider\$configurationManager
‪ConfigurationManager $configurationManager
Definition: FormYamlProvider.php:29
‪TYPO3\CMS\Lowlevel\ConfigurationModuleProvider\ProviderInterface
Definition: ProviderInterface.php:24
‪TYPO3\CMS\Form\ConfigurationModuleProvider\FormYamlProvider\__invoke
‪__invoke(array $attributes)
Definition: FormYamlProvider.php:36
‪TYPO3\CMS\Core\Utility\ArrayUtility
Definition: ArrayUtility.php:26
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:25
‪TYPO3\CMS\Form\ConfigurationModuleProvider\FormYamlProvider\getLanguageService
‪getLanguageService()
Definition: FormYamlProvider.php:64
‪TYPO3\CMS\Core\Localization\LanguageService
Definition: LanguageService.php:46
‪TYPO3\CMS\Form\Mvc\Configuration\ConfigurationManagerInterface\CONFIGURATION_TYPE_YAML_SETTINGS
‪const CONFIGURATION_TYPE_YAML_SETTINGS
Definition: ConfigurationManagerInterface.php:30
‪TYPO3\CMS\Form\ConfigurationModuleProvider
Definition: FormYamlProvider.php:18
‪TYPO3\CMS\Form\Mvc\Configuration\ConfigurationManager
Definition: ConfigurationManager.php:36
‪TYPO3\CMS\Form\Mvc\Configuration\ConfigurationManagerInterface
Definition: ConfigurationManagerInterface.php:29