Commit 9f606f66 authored by Damien McKenna's avatar Damien McKenna Committed by Damien McKenna
Browse files

Issue #3034248 by DanielVeza, chadmandoo, DamienMcKenna, jwilson3, justin2pin,...

Issue #3034248 by DanielVeza, chadmandoo, DamienMcKenna, jwilson3, justin2pin, InaW, ChandeepKhosa, thejimbirch, pianomansam, FiNeX: Promote use of Token Or module to make tokens more flexible.
parent 4d4ac09b
Loading
Loading
Loading
Loading
+3 −0
Changes for CHANGELOG.txt: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -6,6 +6,9 @@ Metatag 8.x-1.x-dev, 2022-xx-xx
  tags.
#3300806 by heddn, DamienMcKenna: hreflang_per_language not in config schema.
#3302675 by DamienMcKenna: Fix $modules definitions in tests.
#3034248 by DanielVeza, chadmandoo, DamienMcKenna, jwilson3, justin2pin, InaW,
  ChandeepKhosa, thejimbirch, pianomansam, FiNeX: Promote use of Token Or
  module to make more flexible tokens.


Metatag 8.x-1.21, 2022-07-16
+4 −0
Changes for README.md: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -300,6 +300,10 @@ Two migration processes are supported:
Some modules are available that extend Metatag with additional or complimentary
functionality:

* [Token OR](https://www.drupal.org/project/token_or):
  Provides a means to output a second token if the first one is empty, which can
  be very useful for complex content architectures.

* [Schema.org Metatag](https://www.drupal.org/project/schema_metatag):
  Extensive solution for adding schema.org / JSON-LD support to Metatag.

+12 −0
Changes for metatag.install: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -48,6 +48,18 @@ function metatag_requirements($phase) {
        ]),
      ];
    }

    // Suggest the Token OR module.
    if (!\Drupal::moduleHandler()->moduleExists('token_or')) {
      $requirements['metatag_token_or'] = [
        'severity' => REQUIREMENT_INFO,
        'title' => 'Metatag',
        'value' => new TranslatableMarkup('Token Or'),
        'description' => new TranslatableMarkup('The <a href="@module">Token OR module</a> is suggested for when the basic content tokens are not flexible enough, e.g. to make a meta tag show the contents of one field if it is filled in or another if the first one is empty.', [
          '@module' => 'https://www.drupal.org/project/token_or',
        ]),
      ];
    }
  }

  return $requirements;