@@ -37,6 +37,14 @@ class ModuleConfigurationForm extends ConfigFormBase {
'#default_value'=>$config->get('x_default'),
'#description'=>$this->t('If enabled, an additional <a href="https://en.wikipedia.org/wiki/Hreflang#X-Default" rel="noreferrer">@html</a> tag will be created, pointing at the site default language.',['@html'=>'hreflang="x-default"']),
];
$form['defer_to_content_translation']=[
'#type'=>'checkbox',
'#title'=>$this->t('Defer to Content Translation hreflang tags on content entity pages'),
'#description'=>$this->t("If enabled, and Content Translation module is enabled, Hreflang module will not add hreflang tags to content entity pages (aside from the x-default tag, if enabled above). As a result, hreflang tags will be added only for languages that have a translation (and to which the user has view access), or for the content's designated language if it is not translatable, although the content could still be accessible under other languages with a translated user interface. Note that Content Translation module does not add query arguments to its hreflang tags, so pages with query arguments will not have a valid set of hreflang tags; this will, however, improve cache efficiency by not creating separate caches for each set of query arguments."),
];
returnparent::buildForm($form,$form_state);
}
@@ -46,6 +54,7 @@ class ModuleConfigurationForm extends ConfigFormBase {