User tests: Successful: Unsuccessful:
Addittionaly to #41357 the plugin may set the event result directly $event['result'] = $result.
Example in core Debug plugin
joomla-cms/plugins/system/debug/src/Extension/Debug.php
Lines 387 to 391 in c4ee583
But most of our events will be imutable and it will throw an error.
The patch allow to modyfy $event['result']
in ImutableEvent
for now, with deprecation waring.
Code review.
Also can run:
$event = new class ('onFooBar') extends Joomla\CMS\Event\AbstractImmutableEvent{};
$event['result'] = 'foobar';
An error
No error
Please select:
Category | ⇒ | Libraries |
Status | New | ⇒ | Pending |
Labels |
Added:
bug
PR-4.4-dev
|
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-08-31 21:50:32 |
Closed_By | ⇒ | MacJoom |
@laoneo @MacJoom I think we need this before beta1