Skip to content
Snippets Groups Projects
Commit e5160a5e authored by Matthias Adrowski's avatar Matthias Adrowski
Browse files

[TASK] ECS

parent 9ab506cc
No related branches found
No related tags found
1 merge request!6TYPO3 11
......@@ -36,7 +36,6 @@ use TYPO3\CMS\Fluid\View\StandaloneView;
* @deprecated All of this class will be removed when TYPO3 10 support is dropped
*/
class PluginRenderer implements PageLayoutViewDrawItemHookInterface {
protected PreviewService $previewService;
public function init() {
......
......@@ -26,7 +26,6 @@ use TYPO3\CMS\Fluid\View\StandaloneView;
* PreviewService, to get Views while we have to duplicate previewCode
*/
class PreviewService {
public const RETURNTYPE_ARR = 'array';
/**
......@@ -72,12 +71,12 @@ class PreviewService {
* @return array|mixed|string
*/
private function passVDefOnKeyToTemplate(array $conf, string $key, string $returnType = '') {
if(isset($conf[$key])) {
if (isset($conf[$key])) {
return $conf[$key]['vDEF'];
}
// check if we got a possible returntype:
if($returnType === self::RETURNTYPE_ARR) {
if ($returnType === self::RETURNTYPE_ARR) {
return [];
}
......
<?php
defined('TYPO3') or die();
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
'sg_youtube',
......
<?php
defined('TYPO3') or die();
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['sgyoutube_youtube'] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment