X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fmetatag%2Fmetatag_pinterest%2Fsrc%2FPlugin%2Fmetatag%2FTag%2FPinterestNosearch.php;fp=web%2Fmodules%2Fcontrib%2Fmetatag%2Fmetatag_pinterest%2Fsrc%2FPlugin%2Fmetatag%2FTag%2FPinterestNosearch.php;h=9c0c9437ba6dfdc8c346bfe04c15f2f41b87d15a;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/modules/contrib/metatag/metatag_pinterest/src/Plugin/metatag/Tag/PinterestNosearch.php b/web/modules/contrib/metatag/metatag_pinterest/src/Plugin/metatag/Tag/PinterestNosearch.php new file mode 100644 index 000000000..9c0c9437b --- /dev/null +++ b/web/modules/contrib/metatag/metatag_pinterest/src/Plugin/metatag/Tag/PinterestNosearch.php @@ -0,0 +1,41 @@ + 'checkbox', + '#title' => $this->label(), + '#description' => $this->description(), + '#default_value' => ($this->value === 'nosearch') ?: '', + '#required' => isset($element['#required']) ? $element['#required'] : FALSE, + '#element_validate' => [[get_class($this), 'validateTag']], + '#return_value' => 'nosearch', + ]; + + return $form; + } + +}