In hook_language_switch_link_alter not possible to change hreflang value from other modules.

CommentFileSizeAuthor
#2 patch-2764077-1.patch421 bytesmeelis82

Comments

meelis82 created an issue. See original summary.

meelis82’s picture

StatusFileSize
new421 bytes
meelis82’s picture

Status: Active » Needs review

  • mfb committed 7a778db on 7.x-1.x authored by meelis82
    Issue #2764077 by meelis82: In hook_language_switch_link_alter not...
mfb’s picture

Status: Needs review » Fixed

Committed 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()

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.