src/Mailable.php
/**
     * Renders the Email body.
     *
     * @return string
     */
Renders the Email body.
@return string
Renders the Email body . @return string
public function render(): string
    {
        if ($this->locale && function_exists('switch_to_locale')) {
            \switch_to_locale($this->locale);
        }
        $body = $this->body();
        if ($this->locale && function_exists('is_locale_switched') && is_locale_switched()) {
            \restore_previous_locale();
        }
        return $body;
    }
public function render ( ) : string { if ( $ this -> locale && function_exists ( 'switch_to_locale' ) ) { \ switch_to_locale ( $ this -> locale ) ; } $ body = $ this -> body ( ) ; if ( $ this -> locale && function_exists ( 'is_locale_switched' ) && is_locale_switched ( ) ) { \ restore_previous_locale ( ) ; } return $ body ; }
Renders the Email body.
Renders the Email body .