You are here

Captcha.php in Express 8

File

themes/contrib/bootstrap/src/Plugin/Prerender/Captcha.php
View source
<?php

namespace Drupal\bootstrap\Plugin\Prerender;

use Drupal\bootstrap\Annotation\BootstrapPrerender;
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);
  }

}

Classes

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