Guides

RstExtension extends AbstractExtension
in package

FinalYes

Table of Contents

Properties

$nodeRenderer  : NodeRenderer

Methods

__construct()  : mixed
cleanContent()  : string
getFilters()  : array<string|int, TwigFilter>
getFunctions()  : array<string|int, TwigFunction>
renderRstIndent()  : string
renderRstTable()  : string
renderRstTitle()  : string
determineMaxLenght()  : void
renderCellContent()  : string
renderRows()  : string
renderTableRowEnd()  : string

Properties

Methods

cleanContent()

public cleanContent(string $content) : string
Parameters
$content : string
Return values
string

getFilters()

public getFilters() : array<string|int, TwigFilter>
Return values
array<string|int, TwigFilter>

getFunctions()

public getFunctions() : array<string|int, TwigFunction>
Return values
array<string|int, TwigFunction>

renderRstIndent()

public renderRstIndent(string $text, int $indentNr) : string
Parameters
$text : string
$indentNr : int
Return values
string

renderRstTable()

public renderRstTable(RenderContext} $context, TableNode $node) : string
Parameters
$context : RenderContext}
$node : TableNode
Return values
string

renderRstTitle()

public renderRstTitle(TitleNode $node, string $content) : string
Parameters
$node : TitleNode
$content : string
Return values
string

renderRows()

private renderRows(array<string|int, TableRow$rows, RenderContext $env, array<string|int, int> $columnWidths[, string $separator = '-' ]) : string
Parameters
$rows : array<string|int, TableRow>
$env : RenderContext
$columnWidths : array<string|int, int>
$separator : string = '-'
Return values
string

renderTableRowEnd()

private renderTableRowEnd(array<string|int, int> $columnWidths[, string $char = '-' ]) : string
Parameters
$columnWidths : array<string|int, int>
$char : string = '-'
Return values
string

        
On this page

Search results