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 {}

Comments

Alan D. created an issue. See original summary.

alan d.’s picture

Status: Active » Needs review
StatusFileSize
new1.88 KB

Completely untested patch to see what the tests do.

  • Alan D. committed 726d00e on 8.x-1.x
    Issue #3013908 by Alan D.: Drupal\name\Element\Name should extend...
alan d.’s picture

Issue summary: View changes
Status: Needs review » Fixed

Manual testing showed no apparent issues either.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.