diff -u b/config/schema/hreflang.schema.yml b/config/schema/hreflang.schema.yml --- b/config/schema/hreflang.schema.yml +++ b/config/schema/hreflang.schema.yml @@ -7,4 +7,4 @@ label: 'Add x-default hreflang tag for default language' defer_to_content_translation: type: boolean - label: 'Defer to the Drupal core content translation hreflinks' + label: 'Defer to Content Translation hreflang tags on content entity pages' diff -u b/src/Form/ModuleConfigurationForm.php b/src/Form/ModuleConfigurationForm.php --- b/src/Form/ModuleConfigurationForm.php +++ b/src/Form/ModuleConfigurationForm.php @@ -40,9 +40,9 @@ $form['defer_to_content_translation'] = [ '#type' => 'checkbox', - '#title' => $this->t('Defer to the Drupal core content translation hreflinks'), + '#title' => $this->t('Defer to Content Translation hreflang tags on content entity pages'), '#default_value' => $config->get('defer_to_content_translation'), - '#description' => $this->t('If enabled, hreflang module will not add links to pages that translated with content translation module.'), + '#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."), ]; return parent::buildForm($form, $form_state); diff -u b/tests/src/Functional/HreflangContentTranslationTest.php b/tests/src/Functional/HreflangContentTranslationTest.php --- b/tests/src/Functional/HreflangContentTranslationTest.php +++ b/tests/src/Functional/HreflangContentTranslationTest.php @@ -74,7 +74,8 @@ // French hreflang found on French page. $this->assertSession()->responseNotContains(''); - // Enable "Defer to the Drupal core content translation hreflinks" option. + // Enable the "Defer to Content Translation hreflang tags on content entity + // pages" option. $this->drupalGet('admin/config/search/hreflang'); $edit = ['defer_to_content_translation' => TRUE]; $this->submitForm($edit, 'Save configuration');