Anhskohbo\NoCaptcha\NoCaptcha::display PHP Method

display() public method

Render HTML captcha.
public display ( $attributes = [], $lang = null ) : string
return string
    public function display($attributes = [], $lang = null)
    {
        $attributes['data-sitekey'] = $this->sitekey;
        $html = '<script src="' . $this->getJsLink($lang) . '" async defer></script>' . "\n";
        $html .= '<div class="g-recaptcha"' . $this->buildAttributes($attributes) . '></div>';
        return $html;
    }