Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / Prerender / Captcha.php
diff --git a/web/themes/contrib/bootstrap/src/Plugin/Prerender/Captcha.php b/web/themes/contrib/bootstrap/src/Plugin/Prerender/Captcha.php
new file mode 100644 (file)
index 0000000..e16ac36
--- /dev/null
@@ -0,0 +1,28 @@
+<?php
+
+namespace Drupal\bootstrap\Plugin\Prerender;
+
+use Drupal\bootstrap\Utility\Element;
+
+/**
+ * Pre-render callback for the "captcha" element type.
+ *
+ * @ingroup plugins_prerender
+ *
+ * @BootstrapPrerender("captcha",
+ *   action = @BootstrapConstant(
+ *     "\Drupal\bootstrap\Bootstrap::CALLBACK_PREPEND"
+ *   )
+ * )
+ */
+class Captcha extends PrerenderBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function preRenderElement(Element $element) {
+    parent::preRenderElement($element);
+    $element->setProperty('smart_description', FALSE, TRUE);
+  }
+
+}