You are here

class Captcha in Express 8

Pre-render callback for the "captcha" element type.

Plugin annotation


@BootstrapPrerender("captcha",
  action = @BootstrapConstant(
    "\Drupal\bootstrap\Bootstrap::CALLBACK_PREPEND"
  )
)

Hierarchy

Expanded class hierarchy of Captcha

File

themes/contrib/bootstrap/src/Plugin/Prerender/Captcha.php, line 19

Namespace

Drupal\bootstrap\Plugin\Prerender
View source
class Captcha extends PrerenderBase {

  /**
   * {@inheritdoc}
   */
  public static function preRenderElement(Element $element) {
    parent::preRenderElement($element);
    $element
      ->setProperty('smart_description', FALSE, TRUE);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Captcha::preRenderElement public static function Pre-render element callback. Overrides PrerenderBase::preRenderElement
PrerenderBase::preRender public static function Pre-render render array element callback. Overrides PrerenderInterface::preRender