concrete/src/Authentication/AuthenticationType.php
public function renderForm($element = 'form', $params = [])
    {
        $this->controller->requireAsset('javascript', 'backstretch');

        $form_element = $this->mapAuthenticationTypeFilePath($element . '.php');
        if (!$form_element->exists()) {
            $form_element = $this->mapAuthenticationTypeFilePath('form.php');
            if (method_exists($this->controller, 'form')) {
                call_user_func_array([$this->controller, 'form'], $params);
            }
        }
        ob_start();
        if (method_exists($this->controller, $element)) {
            call_user_func_array([$this->controller, $element], $params);
        } else {
            $this->controller->view();
        }
        extract(array_merge($params, $this->controller->getSets()));
        require $form_element->file;
        $out = ob_get_contents();
        ob_end_clean();
        echo $out;
    }
public function renderForm($element = 'form', $params = [])
    {
        $this->controller->requireAsset('javascript', 'backstretch');

        $form_element = $this->mapAuthenticationTypeFilePath($element . '.php');
        if (!$form_element->exists()) {
            $form_element = $this->mapAuthenticationTypeFilePath('form.php');
            if (method_exists($this->controller, 'form')) {
                call_user_func_array([$this->controller, 'form'], $params);
            }
        }
        ob_start();
        if (method_exists($this->controller, $element)) {
            call_user_func_array([$this->controller, $element], $params);
        } else {
            $this->controller->view();
        }
        extract(array_merge($params, $this->controller->getSets()));
        require $form_element->file;
        $out = ob_get_contents();
        ob_end_clean();
        echo $out;
    }
public function renderForm ( $ element = 'form' , $ params = [ ] ) { $ this -> controller -> requireAsset ( 'javascript' , 'backstretch' ) ; $ form_element = $ this -> mapAuthenticationTypeFilePath ( $ element . '.php' ) ; if ( ! $ form_element -> exists ( ) ) { $ form_element = $ this -> mapAuthenticationTypeFilePath ( 'form.php' ) ; if ( method_exists ( $ this -> controller , 'form' ) ) { call_user_func_array ( [ $ this -> controller , 'form' ] , $ params ) ; } } ob_start ( ) ; if ( method_exists ( $ this -> controller , $ element ) ) { call_user_func_array ( [ $ this -> controller , $ element ] , $ params ) ; } else { $ this -> controller -> view ( ) ; } extract ( array_merge ( $ params , $ this -> controller -> getSets ( ) ) ) ; require $ form_element -> file ; $ out = ob_get_contents ( ) ; ob_end_clean ( ) ; echo $ out ; }
Render the login form for this authentication type.

@param string $element
@param array  $params
Render the login form for this authentication type .