mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-24 13:16:13 +01:00
[TASK] Import classes (#1299)
This commit is contained in:
parent
cf899825d4
commit
bbe8b96aff
4 changed files with 17 additions and 8 deletions
|
@ -2,8 +2,10 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
use TTN\Tea\Domain\Model\Tea;
|
||||
|
||||
return [
|
||||
\TTN\Tea\Domain\Model\Tea::class => [
|
||||
Tea::class => [
|
||||
'properties' => [
|
||||
'ownerUid' => ['fieldName' => 'owner'],
|
||||
],
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
<?php
|
||||
|
||||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
||||
|
||||
defined('TYPO3') || die('Access denied.');
|
||||
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('tea', 'Configuration/TypoScript', 'Tea');
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
|
||||
ExtensionManagementUtility::addStaticFile('tea', 'Configuration/TypoScript', 'Tea');
|
||||
ExtensionManagementUtility::addStaticFile(
|
||||
'tea',
|
||||
'Configuration/TypoScript/Frontend/',
|
||||
'Tea frontend (optional)'
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
<?php
|
||||
|
||||
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
|
||||
|
||||
defined('TYPO3') || die();
|
||||
|
||||
call_user_func(
|
||||
static function (): void {
|
||||
// This makes the plugin selectable in the BE.
|
||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
||||
ExtensionUtility::registerPlugin(
|
||||
// extension name, matching the PHP namespaces (but without the vendor)
|
||||
'Tea',
|
||||
// arbitrary, but unique plugin name (not visible in the BE)
|
||||
|
@ -16,14 +18,14 @@ call_user_func(
|
|||
'EXT:tea/Resources/Public/Icons/Extension.svg'
|
||||
);
|
||||
|
||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
||||
ExtensionUtility::registerPlugin(
|
||||
'Tea',
|
||||
'TeaShow',
|
||||
'LLL:EXT:tea/Resources/Private/Language/locallang.xlf:plugin.tea_show',
|
||||
'EXT:tea/Resources/Public/Icons/Extension.svg'
|
||||
);
|
||||
|
||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
||||
ExtensionUtility::registerPlugin(
|
||||
'Tea',
|
||||
'TeaFrontEndEditor',
|
||||
'LLL:EXT:tea/Resources/Private/Language/locallang.xlf:plugin.tea_frontend_editor',
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
<?php
|
||||
|
||||
use TYPO3\CMS\Core\Information\Typo3Version;
|
||||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
||||
|
||||
$tca = [
|
||||
'ctrl' => [
|
||||
'title' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_tea',
|
||||
|
@ -206,7 +209,7 @@ $tca = [
|
|||
],
|
||||
];
|
||||
|
||||
$typo3Version = new \TYPO3\CMS\Core\Information\Typo3Version();
|
||||
$typo3Version = new Typo3Version();
|
||||
if ($typo3Version->getMajorVersion() < 12) {
|
||||
$tca = array_replace_recursive(
|
||||
$tca,
|
||||
|
@ -233,7 +236,7 @@ if ($typo3Version->getMajorVersion() < 12) {
|
|||
];
|
||||
$tca['columns']['image'] = [
|
||||
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_tea.image',
|
||||
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
|
||||
'config' => ExtensionManagementUtility::getFileFieldTCAConfig(
|
||||
'image',
|
||||
[
|
||||
'maxitems' => 1,
|
||||
|
|
Loading…
Reference in a new issue