AirLay backend

AirlayTemplateProcessor extends TemplateProcessor
in package

Table of Contents

cloneBlock()  : string|null
Clone a block.

Methods

cloneBlock()

Clone a block.

public cloneBlock(string $blockname[, int $clones = 1 ][, bool $replace = true ][, bool $indexVariables = false ][, array<string|int, mixed> $variableReplacements = null ]) : string|null
Parameters
$blockname : string
$clones : int = 1

How many time the block should be cloned

$replace : bool = true
$indexVariables : bool = false

If true, any variables inside the block will be indexed (postfixed with #1, #2, ...)

$variableReplacements : array<string|int, mixed> = null

Array containing replacements for macros found inside the block to clone

Tags
link
https://github.com/PHPOffice/PHPWord/issues/341#issuecomment-927885887
Return values
string|null

Search results