Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
plugin system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Sep 2013 at 14:47 UTC
Updated:
29 Jul 2014 at 22:51 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pwolanin commentedComment #2
pwolanin commentedfeedback from dawehner - make a helper method instead of inlining the code in each class.
Comment #3
dawehnerLet's add leading "\" here as well.
Comment #4
neclimdulMight be a good place for an explicit exception that extends the base plugin exception.
Comment #5
pwolanin commentedHere's fixes, a new Exception and an added test, though maybe the test should be in the base class test
Comment #6
neclimdulWoops, wrong exception name.
Comment #7
pwolanin commentedFixes documentation and moves the testing to a new unit test for the base DerivativeDiscoveryDecorator class.
Comment #8
twistor commented*tries to use an invalid derivative class
Comment #9
pwolanin commentedthanks, fixed.
Comment #10
dawehnerFixing this is kind of out of scope, but if we do, we should do it properly: "Contains \..."
Comment #11
pwolanin commentedSeems silly to have a separate doc issue if we're changing other parts of the class.
Comment #12
dawehnerSure sure, just wanted to do it properly here.
Comment #13
pwolanin commented#11: 2078879-11.patch queued for re-testing.
Comment #14
pwolanin commented#11: 2078879-11.patch queued for re-testing.
Comment #15
neclimdulDon't have an answer but should be public method be clear that it can throw an exception since we're not catching it internally?
Comment #16
pwolanin commentedYes, we should have an @throws I think.
So you mean on the getDefinitions() method?
Comment #17
neclimdulYes, that's what I meant. Lets go ahead and do it then.
Comment #18
dawehnerSo we need kind of something like this?
Comment #19
dawehner.
Comment #20
neclimdulExactly. Making assumptions about the bot return since this is a doc change and bumping back to RTBC. Everything thing else looks awesome.
Comment #21
pwolanin commentedI think "class in the definition" is unclear, the "derivative fetcher class in a plugin definition"?
e.g.
Comment #22
dawehnerComment #23
pwolanin commentedLet's make the doc consistent and slightly more compact.
Comment #24
neclimdulGood enough for me. Back to RTBC.
Comment #25
pwolanin commented#23: derivative-2078879-23.patch queued for re-testing.
Comment #26
pwolanin commented#23: derivative-2078879-23.patch queued for re-testing.
Comment #27
alexpottPatch no longer applies.
Comment #28
xanoRe-roll.
Comment #29
dawehnerBack to RTBC
Comment #30
xano#28: drupal_2078879_28.patch queued for re-testing.
Comment #31
catchCommitted/pushed to 8.x, thanks!
Comment #32
tstoecklerCan we get a quick follow-up for the wrong patch-style documentation here? Thanks!