ext_localconf.php 877 Bytes
Newer Older
Dainis Abols's avatar
Dainis Abols committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/**
 * Created by PhpStorm.
 * User: Maija
 * Date: 7/30/2018
 * Time: 3:16 PM
 */

defined('TYPO3_MODE') || die('Access denied.');

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
    'Lu.LuNotices',
    'Pi1',
    [
        'Notices' => 'list,single,details',
    ],
    [
        // Non cached actions
    ]
);

// Add elements for dev views
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:lu_notices/Configuration/TSConfig/mod.newElements.ts">');
Dainis Abols's avatar
Dainis Abols committed
24
25
26
27

// Register hooks
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList::class]['modifyQuery'][]
    = \Lu\LuNotices\Hooks\Backend\RecordListQueryHook::class;
28
29
30

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['noticesFileMigration']
    = Lu\LuNotices\Updates\FileMigrationWizard::class;