Feature PR-5.0-dev Pending

User tests: Successful: Unsuccessful:

avatar Fedik
Fedik
28 Aug 2023

Summary of Changes

Event classes for Custom fields.

Affected events:

  • onCustomFieldsGetTypes
  • onCustomFieldsPrepareDom
  • onCustomFieldsBeforePrepareField
  • onCustomFieldsPrepareField
  • onCustomFieldsAfterPrepareField

Testing Instructions

Use custom fields

Actual result BEFORE applying this Pull Request

Works

Expected result AFTER applying this Pull Request

Works

Link to documentations

Please select:

avatar joomla-cms-bot joomla-cms-bot - change - 28 Aug 2023
Category Administration com_fields Libraries
avatar Fedik Fedik - open - 28 Aug 2023
avatar Fedik Fedik - change - 28 Aug 2023
Status New Pending
avatar Fedik Fedik - change - 28 Aug 2023
Labels Added: Feature PR-5.0-dev b/c break
avatar Fedik Fedik - change - 28 Aug 2023
The description was changed
avatar Fedik Fedik - edited - 28 Aug 2023
avatar Fedik Fedik - change - 28 Aug 2023
Labels Removed: b/c break
avatar joomla-cms-bot joomla-cms-bot - change - 29 Aug 2023
Category Administration com_fields Libraries Administration com_fields Libraries Front End Plugins
avatar Fedik Fedik - change - 29 Aug 2023
The description was changed
avatar Fedik Fedik - edited - 29 Aug 2023
avatar HLeithner
HLeithner - comment - 2 Sep 2023

Merging this as with code review and based on the other similar PRs, before beta1 to get enough feedback for final release.

Additionally we need a deprecation warning for plugins which extend the FieldsPlugin without the subscriber interface.

Suggestion, create a constructor function which test if $this is instance of SubscriberInterface.

avatar HLeithner HLeithner - change - 2 Sep 2023
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-09-02 14:15:11
Closed_By HLeithner
avatar HLeithner HLeithner - close - 2 Sep 2023
avatar HLeithner HLeithner - merge - 2 Sep 2023
avatar Fedik
Fedik - comment - 2 Sep 2023

This is unnecessary, whole legacy listeners code should go, not only for FieldsPlugin.

avatar HLeithner
HLeithner - comment - 3 Sep 2023

yes but that means we have to call $y = $event->getY() anyway when we don't have references anymore. In this case maybe it make sense to not have (pseudo)references at the caller location at all and always run $x = $event->getX() for every reference/proxyArray we use now?

avatar Fedik
Fedik - comment - 3 Sep 2023

You comented in wrong PR :)

Add a Comment

Login with GitHub to post a comment