class Captcha

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

Related topics

Namespace

Drupal\bootstrap\Plugin\Prerender
Source
class Captcha extends PrerenderBase {

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

}

Members

Contains filters are case sensitive
Name Modifiers Type Description
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