Commit b6ea9c57 authored by pathirakaliappan's avatar pathirakaliappan Committed by Damien McKenna
Browse files

Issue #3196133 by leopathu, DamienMcKenna: Exclusive robots metatags (index,...

Issue #3196133 by leopathu, DamienMcKenna: Exclusive robots metatags (index, noindex, follow, nofollow) in Entity Form.
parent f87eac70
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -37,6 +37,8 @@ Metatag 8.x-1.x-dev, xxxx-xx-xx
  hreflangs.
#2941632 by bgilhome, rokzabukovec, DamienMcKenna, yannickoo, thejimbirch:
  og:latitude/longitude have been replaced by place:location:latitude/longitude.
#3196133 by leopathu, DamienMcKenna: Exclusive robots metatags (index, noindex,
  follow, nofollow) in Entity Form.


Metatag 8.x-1.15, 2020-12-05
+12 −4
Original line number Diff line number Diff line
@@ -69,28 +69,36 @@ class Robots extends MetaNameBase {
      'index' => [
        '#states' => [
          'disabled' => [
            ':input[name="robots[noindex]"]' => ['checked' => TRUE],
            [':input[name="robots[noindex]"]' => ['checked' => TRUE]],
            'or',
            [':input[name*="[robots][noindex]"]' => ['checked' => TRUE]],
          ],
        ],
      ],
      'noindex' => [
        '#states' => [
          'disabled' => [
            ':input[name="robots[index]"]' => ['checked' => TRUE],
            [':input[name="robots[index]"]' => ['checked' => TRUE]],
            'or',
            [':input[name*="[robots][index]"]' => ['checked' => TRUE]],
          ],
        ],
      ],
      'follow' => [
        '#states' => [
          'disabled' => [
            ':input[name="robots[nofollow]"]' => ['checked' => TRUE],
            [':input[name="robots[nofollow]"]' => ['checked' => TRUE]],
            'or',
            [':input[name*="[robots][nofollow]"]' => ['checked' => TRUE]],
          ],
        ],
      ],
      'nofollow' => [
        '#states' => [
          'disabled' => [
            ':input[name="robots[follow]"]' => ['checked' => TRUE],
            [':input[name="robots[follow]"]' => ['checked' => TRUE]],
            'or',
            [':input[name*="[robots][follow]"]' => ['checked' => TRUE]],
          ],
        ],
      ],