class
Illuminate
/
Mail
/
Markdown
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
Markdown
Properties
protected
$theme string
The current theme being used when generating emails.
Default: 'default'
protected
$componentPaths array
The registered component paths.
Default: []
Methods
public
__construct ( Factory $view , array $options ) : void
Create a new Markdown renderer instance.
Parameters
- $view Factory
- $options array
public
render ( $view , array $data , $inliner ) : HtmlString
Render the Markdown template into HTML.
Parameters
- $view string
- $data array
- $inliner TijsVerkoyen\...\CssToInlineStyles|null
public
renderText ( $view , array $data ) : HtmlString
Render the Markdown template into text.
Parameters
- $view string
- $data array
public
static
parse ( $text ) : HtmlString
Parse the given Markdown text into HTML.
Parameters
- $text string
public
htmlComponentPaths ( ) : array
Get the HTML component paths.
public
textComponentPaths ( ) : array
Get the text component paths.
protected
componentPaths ( ) : array
Get the component paths.
public
loadComponentsFrom ( array $paths ) : void
Register new mail component paths.
Parameters
- $paths array
public
theme ( $theme ) : $this
Set the default theme to be used.
Parameters
- $theme string
public
getTheme ( ) : string
Get the theme currently being used by the renderer.