Feature PR-5.0-dev b/c break Pending

User tests: Successful: Unsuccessful:

avatar Fedik
Fedik
1 Aug 2023

Summary of Changes

Implementing Event classes for Module events.
The pr depend from #41226

Affected events:

  • onRenderModule
  • onAfterRenderModule
  • onAfterRenderModules
  • onPrepareModuleList
  • onAfterModuleList
  • onAfterCleanModuleList

Backward compatibility break (not critical):

Affects onAfterRenderModules.
Because its is imposible to pass the event attribute by reference the event listener now should use
$event->getContent() and $event->setContent($content) when need to modify the output.

Testing Instructions

Apply patch. Check all works

Actual result BEFORE applying this Pull Request

Works

Expected result AFTER applying this Pull Request

Works

Link to documentations

Please select:

  • Documentation link for docs.joomla.org: https://docs.joomla.org/Plugin/Events#Module
  • No documentation changes for docs.joomla.org needed
  • Pull Request link for manual.joomla.org: TBD
  • No documentation changes for manual.joomla.org needed
36d8057 25 Jul 2023 avatar Fedik phpcs
avatar joomla-cms-bot joomla-cms-bot - change - 1 Aug 2023
Category Administration com_users Front End com_content Libraries
avatar Fedik Fedik - open - 1 Aug 2023
avatar Fedik Fedik - change - 1 Aug 2023
Status New Pending
avatar Fedik Fedik - change - 5 Aug 2023
Title
[5.0] Module event classes
[5.0][Events] Module event classes
avatar Fedik Fedik - edited - 5 Aug 2023
avatar joomla-cms-bot joomla-cms-bot - change - 5 Aug 2023
Category Administration com_users Front End com_content Libraries Administration com_categories com_users Front End com_content Libraries
avatar Fedik Fedik - change - 5 Aug 2023
Labels Added: Feature PR-5.0-dev b/c break
avatar Fedik
Fedik - comment - 21 Aug 2023

Git is messed up here, I made new PR #41413

avatar Fedik Fedik - close - 21 Aug 2023
avatar Fedik Fedik - change - 21 Aug 2023
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2023-08-21 08:03:01
Closed_By Fedik

Add a Comment

Login with GitHub to post a comment