Frontend\Modules\Mailmotor\Actions\Subscribe::parse PHP Method

parse() private method

Parse the data into the template
private parse ( ) : void
return void
    private function parse()
    {
        // form was subscribed?
        if ($this->URL->getParameter('subscribed') == 'true') {
            // show message
            $this->tpl->assign('mailmotorSubscribeIsSuccess', true);
            $this->tpl->assign('mailmotorSubscribeHasDoubleOptIn', $this->URL->getParameter('double-opt-in', 'string', 'true') === 'true');
            // hide form
            $this->tpl->assign('mailmotorSubscribeHideForm', true);
        }
    }