src/base/Message.php
public function renderTextBody($view, array $params = [])
    {
        if (!array_key_exists('message', $params)) {
            $params['message'] = $this;
        }

        return $this->setTextBody($this->render($view, $params, $this->mailer->textLayout));
    }
public function renderTextBody($view, array $params = [])
    {
        if (!array_key_exists('message', $params)) {
            $params['message'] = $this;
        }

        return $this->setTextBody($this->render($view, $params, $this->mailer->textLayout));
    }
public function renderTextBody ( $ view , array $ params = [ ] ) { if ( ! array_key_exists ( 'message' , $ params ) ) { $ params [ 'message' ] = $ this ; } return $ this -> setTextBody ( $ this -> render ( $ view , $ params , $ this -> mailer -> textLayout ) ) ; }
Renders and sets message plain text content.
@param string|array|null $view the view to be used for rendering the message body
@param array $params the parameters (name-value pairs) that will be extracted and made available in the view file
@return $this self reference
Renders and sets message plain text content .