file Captcha.php

Namespace

Drupal\bootstrap\Plugin\Prerender
  1. <?php
  2. namespace Drupal\bootstrap\Plugin\Prerender;
  3. use Drupal\bootstrap\Utility\Element;
  4. /**
  5. * Pre-render callback for the "captcha" element type.
  6. *
  7. * @ingroup plugins_prerender
  8. *
  9. * @BootstrapPrerender("captcha",
  10. * action = @BootstrapConstant(
  11. * "\Drupal\bootstrap\Bootstrap::CALLBACK_PREPEND"
  12. * )
  13. * )
  14. */
  15. class Captcha extends PrerenderBase {
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public static function preRenderElement(Element $element) {
  20. parent::preRenderElement($element);
  21. $element->setProperty('smart_description', FALSE, TRUE);
  22. }
  23. }

Classes

Name Description
Captcha Pre-render callback for the "captcha" element type.