Commit df6aa4d3 authored by Damien McKenna's avatar Damien McKenna
Browse files

Issue #3096936 by DamienMcKenna, thejimbirch, rubyji: Add new tag: Zoom domain verification.

parent e86dfccd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -32,6 +32,8 @@ Metatag 8.x-1.x-dev, xxxx-xx-xx
#3072165 by vuil, DamienMcKenna: Coding standards improvements.
#3074350 by jrockowitz, DamienMcKenna: Create Meta plugin report.
#3074350 by DamienMcKenna: Follow-up to fix some API mismatches.
#3096936 by DamienMcKenna, thejimbirch, rubyji: Add new tag: Zoom domain
  verification.


Metatag 8.x-1.10, 2019-08-29
+3 −0
Original line number Diff line number Diff line
@@ -29,3 +29,6 @@ metatag.metatag_tag.yahoo:
metatag.metatag_tag.yandex:
  type: label
  label: 'Site validation: Yandex'
metatag.metatag_tag.zoom_domain_verification:
  type: label
  label: 'Site validation: Zoom'
+23 −0
Original line number Diff line number Diff line
<?php

namespace Drupal\metatag_verification\Plugin\metatag\Tag;

use Drupal\metatag\Plugin\metatag\Tag\MetaNameBase;

/**
 * Provides a plugin for the 'zoom-domain-verification' meta tag.
 *
 * @MetatagTag(
 *   id = "zoom_domain_verification",
 *   label = @Translation("Zoom"),
 *   description = @Translation("A string provided by <a href=':zoom'>Zoom</a>, full details are available from the <a href=':help'>Zoom online help</a>.", arguments = { ":zoom" = "https://zoom.us/", ":help" = "https://support.zoom.us/hc/en-us/articles/203395207-What-is-Managed-Domain" }),
 *   name = "zoom-domain-verification",
 *   group = "site_verification",
 *   weight = 9,
 *   type = "label",
 *   secure = FALSE,
 *   multiple = FALSE
 * )
 */
class ZoomDomainVerification extends MetaNameBase {
}
+4 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ class MetatagVerificationTagsTest extends MetatagTagsTestBase {
    'pinterest',
    'pocket',
    'yandex',
    'zoom_domain_verification'
  ];

  /**
@@ -57,6 +58,9 @@ class MetatagVerificationTagsTest extends MetatagTagsTestBase {
    elseif ($tag_name == 'yandex') {
      $tag_name = 'yandex-verification';
    }
    elseif ($tag_name == 'zoom_domain_verification') {
      $tag_name = 'zoom-domain-verification';
    }

    return $tag_name;
  }
+1 −0
Original line number Diff line number Diff line
@@ -432,6 +432,7 @@ class MetatagD7Entities extends ProcessPluginBase {
      'p:domain_verify' => 'pinterest',
      // @todo '' => 'pocket',
      'yandex-verification' => 'yandex',
      'zoom-domain-verification' => 'zoom-domain-verification',
    ];

    // Trigger hook_metatag_migrate_metatagd7_tags_map_alter().