We discussed on a call that cache system isn't a good plugins use case at this time, and image effects were only implemented half way (they were not converted to classes), so both ended up not being helpful for understanding the system. This reverts them. Instead, I'll open a separate issue for converting the image toolkit system. Since we only have 1 toolkit (GD) in core, we can convert it all the way without adding much patch bloat.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

effulgentsia’s picture

sun’s picture

Hm. I somewhat agree on cache, but not necessarily on image effects. The implementation code for image effects showed how a typical info hook pattern can be replaced with new plugins. What's the reason for reverting them?

neclimdul’s picture

Status: Needs review » Needs work

Doesn't revert the removal of cache_get_backends().

effulgentsia’s picture

Status: Needs work » Needs review
FileSize
10.05 KB

Ah, I based #1 on #1497366-96: Introduce Plugin System to Core which had that removed already. I figured out how to diff against a remote, so this one should be good. Slowly, I'm climbing the git ladder.

neclimdul’s picture

I tend to agree that image effects are a fairly good fit. They should be converted to PSR-0 though to /really/ fit the implement class requirement we technically have. So if removing them and following up with a full conversion gets us closer to committing (which is what I was lead to believe) I'm ok with it.

neclimdul’s picture

Status: Needs review » Postponed

I'm going to go ahead and mark this postponed on #1664844: Convert image toolkits into plugins. Its basically what we decided to do and what goes in with the initial patch isn't so important as getting the patch in. Postponed though because I want something other than tests in the sandbox so while this is straight forward and ready, I don't want to push it until toolkits are there to replace it.

neclimdul’s picture

Status: Postponed » Fixed

Fixed. Pushed plugins-next-cache and plugins-next-image-effects with the reverted changes if someone wants to work on them.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.