Closed (fixed)
Project:
Drupal core
Version:
8.8.x-dev
Component:
forms system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 Sep 2018 at 19:15 UTC
Updated:
21 Oct 2019 at 13:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
claudiu.cristeaPatch.
Comment #3
claudiu.cristeaComment #4
claudiu.cristeaForgot a wrong use statement.
Comment #6
andypostAs it more about any elements then maybe better to move it to
\Drupal\Core\Render\Element?Comment #7
andypostReroll + added tests
Comment #8
andypostFunction does not return value, fixed test
Comment #9
claudiu.cristeaWhy was removed the end dot? I see that the official deprecation policy still adds a dot at the end https://www.drupal.org/core/deprecation:
Comment #10
andypostYes, that raised in drupal attributes and we need separate issue to make it consistent and another issue to fix coding standards
Btw my test is wrong because it passed in #7
Comment #11
andypostLink to "dot" #2677532-146: Move drupal_check_incompatibility() functionality to a new Dependency class and Version component
Comment #12
mile23The period at the end of deprecation messages is inconsistent throughout core. It's an accident of English that incorrect but valid URL elements are also grammatically correct.
It's fine either way, until there's a coder rule for it, though I like it without the period.
+1 on more docs.
When this is in,
FormHelperwill have three methods:processStates(),rewriteStatesSelector(), andprocessStatesArray().processStatesArray()is protected so we get a clue as to how (not to) use it, but it's still not very clear how it's different fromprocessStates(array $array). Especially with this remarkably unhelpful summary line: "Helper function for self::rewriteStatesSelector()."rewriteStatesSelector()could have a more descriptive docblock, too.This is mostly a nit, tho if I encountered this helper without knowing it's history I'd be confused. Maybe this nit is out of scope here.
Comment #13
volegerComment #15
mile23NW based on #12.
Comment #16
pingwin4egComment #17
pingwin4egUpdated doc blocks to be more clear. I did my best)
Comment #18
volegerCS issue, needs to be fixed.
Also version need to be updated 8.7.0 => 8.8.0.
Same here
Comment #19
andypostRe-roll & fix CS
Comment #21
johnwebdev commentedSeems to be a unrelated test fail. RTBC once ✅
Also updated change record.
Comment #22
johnwebdev commentedComment #24
catchCommitted 2a5c62d and pushed to 8.8.x. Thanks!