The \Drupal\views\Plugin\views\field\FieldPluginBase::renderAsLink()
method that is responsible for rendering Views fields as links allows us to programmatically set 'query' arguments but the \Drupal\views\Plugin\views\field\Links::getLinks()
method that \Drupal\views\Plugin\views\field\Dropbutton
uses to render links as operations/actions does not take this into account.
I've attached a small patch that fixes this. Though I think the design of Links::getLinks()
is very wrong because all link alterations are totally ignored and therefore it should be rewritten. I think the Dropbutton plugin should probably use render arrays for the dropbutton element.
Comment | File | Size | Author |
---|---|---|---|
views-links-field-query.patch | 763 bytes | Anonymous (not verified) | |
Comments