In hook_language_switch_link_alter not possible to change hreflang value from other modules.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | patch-2764077-1.patch | 421 bytes | meelis82 |
In hook_language_switch_link_alter not possible to change hreflang value from other modules.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | patch-2764077-1.patch | 421 bytes | meelis82 |
Comments
Comment #2
meelis82 commentedComment #3
meelis82 commentedComment #5
mfbCommitted this to Drupal 7 branch.
Not sure if I'll port it to Drupal 8... Currently there is no hreflang attribute because Drupal 8 automatically sets the hreflang attribute for us based on the language. In order to port it we'd have to explicitly add the hreflang attribute via hreflang_language_switch_links_alter()