-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
ext_localconf.php
38 lines (34 loc) · 1.3 KB
/
ext_localconf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
call_user_func(function () {
if (TYPO3_MODE === 'BE') {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1572271289] = [
'nodeName' => 'pageSpeedInsightsHistory',
'priority' => 40,
'class' => \Haassie\PageSpeedInsights\FormEngine\Elements\History::class,
];
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/db_layout.php']['drawHeaderHook'][]
= \Haassie\PageSpeedInsights\Hooks\DrawHeaderHook::class . '->render';
}
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('dashboard')) {
// Add module configuration
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(
'module.tx_dashboard {
view {
templateRootPaths.1585898586 = EXT:page_speed_insights/Resources/Private/Templates/
partialRootPaths.1585898586 = EXT:page_speed_insights/Resources/Private/Partials/
layoutRootPaths.1585898586 = EXT:page_speed_insights/Resources/Private/Layouts/
}
}'
);
}
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['page_speed_insights']['categories'] = [
'performance',
'seo',
'accessibility',
'best-practices',
'pwa'
];
});