hospital_management-8.x-1.x-dev/web/themes/bootstrap/src/Plugin/Prerender/Captcha.php
web/themes/bootstrap/src/Plugin/Prerender/Captcha.php
<?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);
}
}
