Skip to content

Render elements can use dependency injection #828

@el7cosmos

Description

@el7cosmos

Bug report

Render elements should be able to use dependency injection, but \Drupal global is allowed in render elements in this following rule:

// Render elements cannot use dependency injection.
'Drupal\Core\Render\Element\ElementInterface',
'Drupal\Core\Render\Element\FormElementInterface',

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions