Skip to content

Commit 19901f9

Browse files
committed
[!!!][TASK] Drop deprecated metadata plugin
1 parent b9aa130 commit 19901f9

File tree

8 files changed

+0
-64
lines changed

8 files changed

+0
-64
lines changed

Classes/Constants.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ class Constants
5858
'blog_comments' => -1600000008,
5959
'blog_header' => -1600000009,
6060
'blog_footer' => -1600000010,
61-
'blog_metadata' => -1600000011,
6261
'blog_authors' => -1600000012,
6362
'blog_relatedposts' => -1600000013,
6463
'blog_recentpostswidget' => -1600000014,

Classes/Controller/PostController.php

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -380,30 +380,6 @@ public function footerAction(): ResponseInterface
380380
return $this->htmlResponse();
381381
}
382382

383-
/**
384-
* Metadata action: output meta information of blog post.
385-
*
386-
* @throws \TYPO3\CMS\Core\Context\Exception\AspectNotFoundException
387-
* @throws \TYPO3\CMS\Extbase\Configuration\Exception\InvalidConfigurationTypeException
388-
* @throws \TYPO3\CMS\Extbase\Persistence\Exception\InvalidQueryException
389-
*
390-
* @deprecated
391-
*/
392-
public function metadataAction(): ResponseInterface
393-
{
394-
trigger_error(
395-
'Using \T3G\AgencyPack\Blog\Controller\PostController::metadataAction is deprecated. Use headerAction or footerAction instead.',
396-
E_USER_DEPRECATED
397-
);
398-
399-
$post = $this->postRepository->findCurrentPost();
400-
$this->view->assign('post', $post);
401-
if ($post instanceof Post) {
402-
$this->blogCacheService->addTagsForPost($post);
403-
}
404-
return $this->htmlResponse();
405-
}
406-
407383
/**
408384
* Authors action: output author information of blog post.
409385
*

Configuration/TCA/Overrides/tt_content.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,6 @@
6565
);
6666
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['blog_sidebar'] = 'recursive,select_key,pages';
6767

68-
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
69-
'Blog',
70-
'Metadata',
71-
'LLL:EXT:blog/Resources/Private/Language/locallang_db.xlf:plugin.blog_metadata.title',
72-
'plugin-blog-metadata'
73-
);
74-
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['blog_metadata'] = 'recursive,select_key,pages';
75-
7668
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
7769
'Blog',
7870
'CommentForm',

Resources/Private/Language/locallang_db.xlf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,6 @@
7171
<trans-unit id="plugin.blog_footer.description" xml:space="preserve">
7272
<source>Displays post footer</source>
7373
</trans-unit>
74-
<trans-unit id="plugin.blog_metadata.title" xml:space="preserve">
75-
<source>Blog: Metadata (Deprecated, will be removed with v11)</source>
76-
</trans-unit>
77-
<trans-unit id="plugin.blog_metadata.description" xml:space="preserve">
78-
<source>Displays post meta data, like date, tags, category...</source>
79-
</trans-unit>
8074
<trans-unit id="plugin.blog_commentform.title" xml:space="preserve">
8175
<source>Blog: Comment Form</source>
8276
</trans-unit>

Resources/Private/Templates/Post/Metadata.html

Lines changed: 0 additions & 6 deletions
This file was deleted.

Resources/Public/Icons/plugin-blog-metadata.svg

Lines changed: 0 additions & 10 deletions
This file was deleted.

ext_localconf.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,6 @@ function () {
144144
]
145145
);
146146

147-
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
148-
'Blog',
149-
'Metadata',
150-
[
151-
\T3G\AgencyPack\Blog\Controller\PostController::class => 'metadata',
152-
]
153-
);
154-
155147
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
156148
'Blog',
157149
'Authors',

ext_tables.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
'plugin-blog-demandedposts' => 'EXT:blog/Resources/Public/Icons/plugin-blog-demandedposts.svg',
3737
'plugin-blog-header' => 'EXT:blog/Resources/Public/Icons/plugin-blog-header.svg',
3838
'plugin-blog-footer' => 'EXT:blog/Resources/Public/Icons/plugin-blog-footer.svg',
39-
'plugin-blog-metadata' => 'EXT:blog/Resources/Public/Icons/plugin-blog-metadata.svg',
4039
'plugin-blog-posts' => 'EXT:blog/Resources/Public/Icons/plugin-blog-posts.svg',
4140
'plugin-blog-relatedposts' => 'EXT:blog/Resources/Public/Icons/plugin-blog-relatedposts.svg',
4241
'plugin-blog-sidebar' => 'EXT:blog/Resources/Public/Icons/plugin-blog-sidebar.svg',

0 commit comments

Comments
 (0)