Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library extension for enhanced batched tag handling #242

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions migrations/54-60/new-deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,20 @@ sidebar_position: 2

All the new deprecations that should be aware of and what you should now be using instead.

# Class deprecations

Planned to be removed in Joomla! 7.0.

### postStoreProcess function in TagsHelper

PR: https://github.com/joomla/joomla-cms/pull/40613
File: libraries/src/Helper/TagsHelper.php
Description: With the new possibility to batch remove a tag, the `postStoreProcess()` function of class `\Joomla\CMS\Helper\TagsHelper` has been deprecated and will be removed in 7.0.
Replacement: New `postStore()` function which has an additional optional parameter `$remove` (default value is `false`) indicating whether the tags in parameter `$newTags` should be removed. If you set it to `true` then the parameter `$replace` is ignored.

### batchTag function in AdminModel

PR: https://github.com/joomla/joomla-cms/pull/40613
File: libraries/src/MVC/Model/AdminModel.php
Description: With the new possibility to batch remove a tag, the `batchTag` function of class `\Joomla\CMS\MVC\Model\AdminModel` has been deprecated and will be removed in 7.0.
Replacement: New `batchTags` function which has an additional optional parameter `$removeTags` (default value is `false`) indicating whether the tags in parameter `$value` have to be removed.
3 changes: 3 additions & 0 deletions migrations/54-60/new-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ sidebar_position: 1
All the new features that have been added to this version.
Any changes in best practice.

### Batched tag enhancement

It is now possible to batch remove a tag. PR: https://github.com/joomla/joomla-cms/pull/40613