|
25 | 25 | use TYPO3\CMS\ContentBlocks\Definition\ContentType\ContentTypeInterface; |
26 | 26 | use TYPO3\CMS\ContentBlocks\Definition\ContentType\PageTypeDefinition; |
27 | 27 | use TYPO3\CMS\ContentBlocks\Definition\TableDefinitionCollection; |
28 | | -use TYPO3\CMS\ContentBlocks\Generator\TcaGenerator; |
29 | 28 | use TYPO3\CMS\ContentBlocks\Registry\ContentBlockRegistry; |
30 | 29 | use TYPO3\CMS\ContentBlocks\UserFunction\ContentWhere; |
31 | 30 | use TYPO3\CMS\ContentBlocks\Utility\ContentBlockPathUtility; |
32 | | -use TYPO3\CMS\Core\Configuration\Event\BeforeTcaOverridesEvent; |
33 | 31 | use TYPO3\CMS\Core\Core\Event\BootCompletedEvent; |
34 | 32 | use TYPO3\CMS\Core\Database\Connection; |
35 | 33 | use TYPO3\CMS\Core\Database\ConnectionPool; |
@@ -72,7 +70,6 @@ public function getFactories(): array |
72 | 70 | 'content-blocks.hide-content-element-children' => static::hideContentElementChildren(...), |
73 | 71 | 'content-blocks.hide-content-element-children-page-content-fetching' => static::hideContentElementChildrenPageContentFetching(...), |
74 | 72 | 'content-blocks.record-summary-for-localization' => static::recordSummaryForLocalization(...), |
75 | | - 'content-blocks.tca' => static::tca(...), |
76 | 73 | ]; |
77 | 74 | } |
78 | 75 |
|
@@ -278,14 +275,6 @@ public static function addUserTsConfig(ContainerInterface $container): \Closure |
278 | 275 | }; |
279 | 276 | } |
280 | 277 |
|
281 | | - public static function tca(ContainerInterface $container): \Closure |
282 | | - { |
283 | | - return static function (BeforeTcaOverridesEvent $event) use ($container) { |
284 | | - $tcaGenerator = $container->get(TcaGenerator::class); |
285 | | - $tcaGenerator($event); |
286 | | - }; |
287 | | - } |
288 | | - |
289 | 278 | public static function hideContentElementChildren(ContainerInterface $container): \Closure |
290 | 279 | { |
291 | 280 | return static function (ModifyDatabaseQueryForContentEvent $event) use ($container) { |
@@ -411,7 +400,6 @@ public static function addEventListeners(ContainerInterface $container, Listener |
411 | 400 | $listenerProvider->addListener(ModifyDatabaseQueryForContentEvent::class, 'content-blocks.hide-content-element-children'); |
412 | 401 | $listenerProvider->addListener(AfterContentHasBeenFetchedEvent::class, 'content-blocks.hide-content-element-children-page-content-fetching'); |
413 | 402 | $listenerProvider->addListener(AfterRecordSummaryForLocalizationEvent::class, 'content-blocks.record-summary-for-localization'); |
414 | | - $listenerProvider->addListener(BeforeTcaOverridesEvent::class, 'content-blocks.tca'); |
415 | 403 | return $listenerProvider; |
416 | 404 | } |
417 | 405 | } |
0 commit comments