Commit 87326752 authored by Jim Birch's avatar Jim Birch Committed by Damien McKenna
Browse files

Issue #3077774 by thejimbirch, cindytwilliams, DamienMcKenna: Add new meta tag: Refresh

parent e7d4b5de
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -12,6 +12,8 @@ Metatag 8.x-1.x-dev, xxxx-xx-xx
  Google's new "handheld" link alternate URL.
#3077773 by gueguerreiro, cindytwilliams, DamienMcKenna: Add new meta tags:
  rel=prev / rel=next.
#3077774 by thejimbirch, cindytwilliams, DamienMcKenna: Add new meta tag:
  Refresh.


Metatag 8.x-1.10, 2019-08-29
+6 −3
Original line number Diff line number Diff line
@@ -38,12 +38,15 @@ metatag.metatag_tag.prev:
metatag.metatag_tag.rating:
  type: label
  label: 'Rating'
metatag.metatag_tag.rights:
  type: label
  label: 'Rights'
metatag.metatag_tag.referrer:
  type: label
  label: 'Referrer policy'
metatag.metatag_tag.refresh:
  type: label
  label: 'Refresh'
metatag.metatag_tag.rights:
  type: label
  label: 'Rights'
metatag.metatag_tag.robots:
  type: label
  label: 'Robots'
+22 −0
Original line number Diff line number Diff line
<?php

namespace Drupal\metatag\Plugin\metatag\Tag;

/**
 * The basic "Refresh" meta tag.
 *
 * @MetatagTag(
 *   id = "refresh",
 *   label = @Translation("Refresh"),
 *   description = @Translation("The number of seconds to wait before refreshing the page. May also force redirect to another page using the format '5; url=http://example.com/', which would be triggered after five seconds."),
 *   name = "refresh",
 *   group = "advanced",
 *   weight = 5,
 *   type = "label",
 *   secure = FALSE,
 *   multiple = FALSE
 * )
 */
class Refresh extends MetaHttpEquivBase {
  // Nothing here yet. Just a placeholder class for a plugin.
}
+1 −2
Original line number Diff line number Diff line
@@ -108,8 +108,7 @@ class MetatagD7Entities extends ProcessPluginBase {
      'prev' => 'prev',
      'rating' => 'rating',
      'referrer' => 'referrer',
      // @todo https://www.drupal.org/project/metatag/issues/3077774
      // 'refresh' => '',
      'refresh' => 'refresh',
      // @todo https://www.drupal.org/project/metatag/issues/3077776
      // 'revisit-after' => '',
      'rights' => 'rights',
+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ class MetatagTagsTest extends MetatagTagsTestBase {
    'prev',
    'rating',
    'referrer',
    'refresh',
    'rights',
    'robots',
    'set_cookie',