‪TYPO3CMS  10.4
Config.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 
20 use Codeception\Module;
21 
53 class ‪Config extends Module
54 {
62  public function ‪grabConfig(string $parameter = null)
63  {
64  return $this->‪grab($parameter);
65  }
66 
75  public function ‪grabModuleConfig(string $moduleName, string $parameter = null)
76  {
77  return $this->‪grab($parameter, $moduleName);
78  }
79 
88  protected function ‪grab(string $parameter = null, string $moduleName = null)
89  {
90  $module = is_string($moduleName) ? $this->getModule($moduleName) : $this;
91  return $module->_getConfig($parameter);
92  }
93 }
‪TYPO3\CMS\Core\Tests\Acceptance\Support\Helper\Config\grabModuleConfig
‪array string null grabModuleConfig(string $moduleName, string $parameter=null)
Definition: Config.php:75
‪TYPO3\CMS\Core\Tests\Acceptance\Support\Helper\Config\grabConfig
‪array string null grabConfig(string $parameter=null)
Definition: Config.php:62
‪TYPO3\CMS\Core\Tests\Acceptance\Support\Helper\Config\grab
‪array string null grab(string $parameter=null, string $moduleName=null)
Definition: Config.php:88
‪TYPO3\CMS\Core\Tests\Acceptance\Support\Helper
Definition: Config.php:18
‪TYPO3\CMS\Core\Tests\Acceptance\Support\Helper\Config
Definition: Config.php:54