Loading CHANGELOG.txt +1 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ Metatag 8.x-1.x-dev, 2023-xx-xx ------------------------------- #3083743 by Eugene Bocharov, DamienMcKenna, bserem, gkannan25, osopolar, timohuisman, akalam, zcht, druhu, maticb, vuil: Add Google's new robots tags. #3360836 by DamienMcKenna: Nodewords migration triggers wrong API. Metatag 8.x-1.23, 2023-05-12 Loading metatag.api.php +13 −0 Original line number Diff line number Diff line Loading @@ -72,3 +72,16 @@ function hook_metatag_migrate_metatagd7_tags_map_alter(array $tags_map) { // This tag was renamed in D8. $tags_map['custom:tag'] = 'custom_tag'; } /** * Allow the list of Nodewords D6's tags to be changed. * * This is only used when migrating meta tags from Nodewords-D6. * * @param array $tags_map * An array of D6 tag names mapped against the D8 tag's IDs. */ function hook_metatag_migrate_nodewordsd6_tags_map_alter(array $tags_map) { // This tag was renamed in D8. $tags_map['custom:tag'] = 'custom_tag'; } src/Plugin/migrate/process/d6/NodewordsEntities.php +2 −2 Original line number Diff line number Diff line Loading @@ -445,9 +445,9 @@ class NodewordsEntities extends ProcessPluginBase { 'yandex-verification' => 'yandex', ]; // Trigger hook_metatag_migrate_metatagd7_tags_map_alter(). // Trigger hook_metatag_migrate_nodewordsd6_tags_map_alter(). // Allow modules to override tags or the entity used for token replacements. \Drupal::service('module_handler')->alter('metatag_migrate_metatagd7_tags_map', $map); \Drupal::service('module_handler')->alter('metatag_migrate_nodewordsd6_tags_map', $map); return $map; } Loading Loading
CHANGELOG.txt +1 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ Metatag 8.x-1.x-dev, 2023-xx-xx ------------------------------- #3083743 by Eugene Bocharov, DamienMcKenna, bserem, gkannan25, osopolar, timohuisman, akalam, zcht, druhu, maticb, vuil: Add Google's new robots tags. #3360836 by DamienMcKenna: Nodewords migration triggers wrong API. Metatag 8.x-1.23, 2023-05-12 Loading
metatag.api.php +13 −0 Original line number Diff line number Diff line Loading @@ -72,3 +72,16 @@ function hook_metatag_migrate_metatagd7_tags_map_alter(array $tags_map) { // This tag was renamed in D8. $tags_map['custom:tag'] = 'custom_tag'; } /** * Allow the list of Nodewords D6's tags to be changed. * * This is only used when migrating meta tags from Nodewords-D6. * * @param array $tags_map * An array of D6 tag names mapped against the D8 tag's IDs. */ function hook_metatag_migrate_nodewordsd6_tags_map_alter(array $tags_map) { // This tag was renamed in D8. $tags_map['custom:tag'] = 'custom_tag'; }
src/Plugin/migrate/process/d6/NodewordsEntities.php +2 −2 Original line number Diff line number Diff line Loading @@ -445,9 +445,9 @@ class NodewordsEntities extends ProcessPluginBase { 'yandex-verification' => 'yandex', ]; // Trigger hook_metatag_migrate_metatagd7_tags_map_alter(). // Trigger hook_metatag_migrate_nodewordsd6_tags_map_alter(). // Allow modules to override tags or the entity used for token replacements. \Drupal::service('module_handler')->alter('metatag_migrate_metatagd7_tags_map', $map); \Drupal::service('module_handler')->alter('metatag_migrate_nodewordsd6_tags_map', $map); return $map; } Loading