typo3/sysext/core/Classes/Service/AbstractService.php 1 location
|
@@ 131-135 (lines=5) @@
|
| 128 |
|
{ |
| 129 |
|
$config = null; |
| 130 |
|
$svOptions = $GLOBALS['TYPO3_CONF_VARS']['SVCONF'][$this->info['serviceType']]; |
| 131 |
|
if (isset($svOptions[$this->info['serviceKey']][$optionName])) { |
| 132 |
|
$config = $svOptions[$this->info['serviceKey']][$optionName]; |
| 133 |
|
} elseif ($includeDefaultConfig && isset($svOptions['default'][$optionName])) { |
| 134 |
|
$config = $svOptions['default'][$optionName]; |
| 135 |
|
} |
| 136 |
|
if (!isset($config)) { |
| 137 |
|
$config = $defaultValue; |
| 138 |
|
} |
typo3/sysext/core/Classes/DataHandling/DataHandler.php 1 location
|
@@ 7620-7624 (lines=5) @@
|
| 7617 |
|
$fieldArray = []; |
| 7618 |
|
if (is_array($GLOBALS['TCA'][$table]['columns'])) { |
| 7619 |
|
foreach ($GLOBALS['TCA'][$table]['columns'] as $field => $content) { |
| 7620 |
|
if (isset($this->defaultValues[$table][$field])) { |
| 7621 |
|
$fieldArray[$field] = $this->defaultValues[$table][$field]; |
| 7622 |
|
} elseif (isset($content['config']['default'])) { |
| 7623 |
|
$fieldArray[$field] = $content['config']['default']; |
| 7624 |
|
} |
| 7625 |
|
} |
| 7626 |
|
} |
| 7627 |
|
// Set default permissions for a page. |