Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295161

Allow Link and LinkGenerator::generate() to provide attributes.

$
0
0

Problem/Motivation

Follow-up to #2614628: menu local task and local actions are missing link context variables

Link currently builds up attributes from the Url object. This is counter intuitive since the Url doesn't have attributes, the link does.

Proposed resolution

Let the Link and link generator deal with attributes. Leave the Url options attributes in for BC.

Remaining tasks

Needs tests.

API changes

Link objects can take

Data model changes


Viewing all articles
Browse latest Browse all 295161

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>