‪TYPO3CMS  ‪main
CustomPreset.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 
22 
30 {
40  public function ‪getConfigurationDescriptors(): array
41  {
43  ‪$configurationValues['BE/passwordHashing/className'] = [
44  'value' => $this->configurationManager->getConfigurationValueByPath('BE/passwordHashing/className'),
45  'readonly' => true,
46  ];
47  $options = (array)$this->configurationManager->getConfigurationValueByPath('BE/passwordHashing/options');
48  foreach ($options as $optionName => $optionValue) {
49  ‪$configurationValues['BE/passwordHashing/options/' . $optionName] = [
50  'value' => $optionValue,
51  'readonly' => true,
52  ];
53  }
54  ‪$configurationValues['FE/passwordHashing/className'] = [
55  'value' => $this->configurationManager->getConfigurationValueByPath('FE/passwordHashing/className'),
56  'readonly' => true,
57  ];
58  $options = (array)$this->configurationManager->getConfigurationValueByPath('FE/passwordHashing/options');
59  foreach ($options as $optionName => $optionValue) {
60  ‪$configurationValues['FE/passwordHashing/options/' . $optionName] = [
61  'value' => $optionValue,
62  'readonly' => true,
63  ];
64  }
66  }
67 }
‪TYPO3\CMS\Install\Configuration\PasswordHashing\CustomPreset
Definition: CustomPreset.php:30
‪TYPO3\CMS\Install\Configuration\AbstractPreset\$configurationValues
‪array $configurationValues
Definition: AbstractPreset.php:42
‪TYPO3\CMS\Install\Configuration\CustomPresetInterface
Definition: CustomPresetInterface.php:27
‪TYPO3\CMS\Install\Configuration\PasswordHashing
Definition: Argon2idPreset.php:18
‪TYPO3\CMS\Install\Configuration\PasswordHashing\CustomPreset\getConfigurationDescriptors
‪array getConfigurationDescriptors()
Definition: CustomPreset.php:40
‪TYPO3\CMS\Install\Configuration\AbstractCustomPreset
Definition: AbstractCustomPreset.php:23