MarkdownInputWithFrontMatter
extends MarkdownInput
in package
implements
FrontMatterProviderInterface
FinalYes
Table of Contents
Interfaces
Properties
- $frontMatter : mixed|null
Methods
- __construct() : mixed
- getContent() : string
- getFrontMatter() : mixed|null
- getLineCount() : int
- getLines() : iterable<int, string>
Properties
$frontMatter
private
mixed|null
$frontMatter
Methods
__construct()
public
__construct(string $content[, int $lineOffset = 0 ][, mixed|null $frontMatter = null ]) : mixed
Parameters
- $content : string
-
Markdown content without the raw front matter
- $lineOffset : int = 0
-
Line offset (based on number of front matter lines removed)
- $frontMatter : mixed|null = null
-
Parsed front matter
getContent()
public
getContent() : string
Return values
stringgetFrontMatter()
public
getFrontMatter() : mixed|null
Return values
mixed|nullgetLineCount()
public
getLineCount() : int
Return values
intgetLines()
public
getLines() : iterable<int, string>