-
Notifications
You must be signed in to change notification settings - Fork 3
/
ext_localconf.php
44 lines (41 loc) · 1.44 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
39
40
41
42
43
44
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$_EXTKEY = 'cs_youtube_data';
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Clickstorm.' . $_EXTKEY,
'Pi1',
[
\Clickstorm\CsYoutubeData\Controller\YoutubeDataController::class => 'list',
],
// non-cacheable actions
[]
);
if (TYPO3_MODE === 'BE'){
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'cs_youtube_data-plugin-pi1',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:cs_youtube_data/Resources/Public/Icons/wizard_icon.svg']
);
// wizards
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'mod {
wizards.newContentElement.wizardItems.plugins {
elements {
pi1 {
iconIdentifier = cs_youtube_data-plugin-pi1
title = LLL:EXT:cs_youtube_data/Resources/Private/Language/locallang.xlf:plugin_label
description = LLL:EXT:cs_youtube_data/Resources/Private/Language/locallang.xlf:plugin_value
tt_content_defValues {
CType = list
list_type = csyoutubedata_pi1
}
}
}
show = *
}
}'
);
}