Skip to content

Commit caa3905

Browse files
committed
Rewrite message
1 parent 29e96c8 commit caa3905

File tree

1 file changed

+25
-18
lines changed

1 file changed

+25
-18
lines changed

migrations/52-53/new-deprecations.md

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -51,25 +51,32 @@ public function display($tpl = null)
5151
```
5252
The first line is a docblock comment, which provides a hint for the IDE for the actual model that is used. The second line will retrieve the model set in the view. If you have more than one model in a view, you can provide it with a parameter to select the right model. The last two lines retrieve the actual data from the model. With the first two lines, IDEs can hint at the available methods in the model and now the returned values from those methods, making it possible to find issues further down the line.
5353

54-
## Two methods deprecated to facilitate new functionality.
55-
### postProcessStore() & batchTag()
56-
#### Declared in 5.3 for removal in 7.0.
57-
### PR [#40613](https://github.com/joomla/joomla-cms/pull/40613)
58-
59-
#### Explanation:
60-
``` new postStore()
61-
public function postStoreProcess(TableInterface $table, $newTags = [], $replace = true)
62-
{
63-
$this->postStore($table, $newTags, $replace);
64-
}
65-
```
66-
postStoreProcess() replaced by postStore() preferred method, adds TableInterface to method.
54+
## AdminModel::postProcessStore()
55+
56+
**namespace**: \Joomla\CMS\MVC\Model;
57+
58+
PR [#40613](https://github.com/joomla/joomla-cms/pull/40613)
6759

60+
postStoreProcess() replaced by postStore() preferred method, adds TableInterface to method.
6861

69-
``` new batchTags()
70-
protected function batchTag($value, $pks, $contexts)
71-
{
72-
return $this->batchTags($value, $pks, $contexts);
73-
}
62+
```php title="New method AdminModel::postStore() replaces AdminModelpostStoreProcess()"
63+
public function postStoreProcess(TableInterface $table, $newTags = [], $replace = true)
64+
{
65+
$this->postStore($table, $newTags, $replace);
66+
}
7467
```
68+
69+
## AdminModel::batchTag()
70+
71+
**namespace**: \Joomla\CMS\MVC\Model;
72+
73+
PR [#40613](https://github.com/joomla/joomla-cms/pull/40613)
74+
7575
batchTag() method replaced with batchTags preferred method providing more accurate descriptive title.
76+
77+
```php title="New method AdminModel::batchTags() replaces AdminModelbatchTag()"
78+
protected function batchTag($value, $pks, $contexts)
79+
{
80+
return $this->batchTags($value, $pks, $contexts);
81+
}
82+
```

0 commit comments

Comments
 (0)