- Issue created by @alexpott
- π¬π§United Kingdom catch
What if we made it non-abstract and returned an array by default in ConfigFormBaseTrait?
- Status changed to Active
about 1 year ago 10:12am 8 November 2023 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Ohai, @Feuerwagen, welcome to the merry land of all things config validation β looking forward to seeing you around more hopefully! π
@catch: that sounds reasonable to me!
- π©πͺGermany Feuerwagen Bonn π©πͺπͺπΊ
Hi @Wim Leers, just doing some drive-by housekeeping while following the latest and greatest updates in core.
In awe of what you wizards are doing β I hope I can contribute something useful in the future. π
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
No real wizardry going on, just chipping away at things one step at a time π Let me know what kinds of things you'd be interested in exploring, and I'll find you something that matches that π
- Status changed to Needs review
about 1 year ago 8:06am 15 November 2023 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Quoting myself from #3384782-7: [PP-1] Follow-up for #3364506: add deprecation once all simple config forms in core implement β :
#5 didn't explain how we could implement this deprecation in the
>=10.2.x
world.Thanks to π Do not require the config in #config_target to be listed in getEditableConfigNames() Active , I see how we can now do that:
I propose that we make
ConfigFormBase
detect:- when
getEditableConfigNames()
returns anything other than the empty array - a deprecation is triggered in Drupal 11
Tricky thing here: for example
\Drupal\search\SearchPageListBuilder
uses not the base class, but the trait β¦ and the trait does NOT have the#config_target
functionality π€AFAICT we'll need to deprecate in Drupal 11 only
\Drupal\Core\Form\ConfigFormBase::getEditableConfigNames
, not\Drupal\Core\Form\ConfigFormBaseTrait::getEditableConfigNames
?Tricky edge case: already (thanks to #3398891), a number of subclasses do not implement that method at all, and instead
use RedundantEditableConfigNamesTrait;
. That trait will become obsolete too!Finally: is this issue now effectively a duplicate of π PP-1: Deprecate \Drupal\Core\Form\ConfigFormBase::getEditableConfigNames() - use #config_target instead Postponed ? Or vice versa?
Which issue do we keep? AFAICT the scopes are so tightly intertwined that it's easier to do together?
- when
- π§πͺBelgium borisson_ Mechelen, π§πͺ
The other issue is older; let's keep that.
- Status changed to Needs work
about 1 year ago 3:41pm 16 November 2023 - πΊπΈUnited States smustgrave
@Wim you linked to this issue, so not sure what the duplicate could be?
- π§πͺBelgium borisson_ Mechelen, π§πͺ
@smustgrave the other issue is: π [PP-2] Follow-up for #3364506: add deprecation once all simple config forms in core implement Postponed .
- Status changed to Closed: duplicate
about 1 year ago 12:55pm 16 December 2023 - π§πͺBelgium borisson_ Mechelen, π§πͺ
Closed in favor of π [PP-2] Follow-up for #3364506: add deprecation once all simple config forms in core implement Postponed