Closed (won't fix)
Project:
Drupal core
Version:
8.0.x-dev
Component:
forms system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Sep 2013 at 05:00 UTC
Updated:
29 Jul 2014 at 22:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tim.plunkettComment #2
webchickHm. Not so sure about this, now that I look at it. #keys in YAML files are very strange. Maybe best to keep Drupalish code in Drupalish patterns (e.g. info hooks).
Comment #3
tim.plunkettAgreed. Actually the worst part to me is this:
So, won't fix? It was a worthwhile exercise, and now we have this issue to point to if someone else suggests it...
Comment #5
larowlanThese would make sense as real plugins if we had an API other than arrays, so that's definitely d9 territory
Comment #6
dawehnerOne reason why this might be a bad idea in general: Forms are always defined in PHP, so people are really used to that, why should elements be special ...
Additional it could add quite of an overhead to parse each of these yml files on each request, in contrast to php which is basically instant.
Comment #7
tim.plunkettYep
Comment #8
tim.plunkettSee #2305839: Convert hook_element_info() to annotated classes