In Table.php we're using a static call to get the renderer: \Drupal::service('renderer')
However, the Views PluginBase base class that we extend already has an injected renderer service that we can and should use instead: $this->getRenderer()
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3119011-2-renderer.patch | 1.26 KB | tr |
| renderer.patch | 1.27 KB | tr |
Comments
Comment #2
tr commentedCorrected typo in the previous patch. We need to improve test coverage so that things like that typo will fail ... but that can wait until another issue.
Comment #4
tr commentedCommitted.