Currently the Name element extends RenderElement
use Drupal\Core\Render\Element\RenderElement;
class Name extends RenderElement {}
Which seems strange that this even works with the FAPI, albeit, it does.
use Drupal\Core\Render\Element\FormElement;
class Name extends FormElement {}
abstract class FormElement extends RenderElement implements FormElementInterface {}
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | name-3013908-2-FormElement-base-class.patch | 1.88 KB | alan d. |
Comments
Comment #2
alan d. commentedCompletely untested patch to see what the tests do.
Comment #4
alan d. commentedManual testing showed no apparent issues either.