Block_Replacements
in package
Handles the replacements for the block.
Table of Contents
Properties
- $block_details : Block_Details
- The class for holding the block details.
Methods
- __construct() : mixed
- Constructor.
- get_replacements() : array<string|int, mixed>
- Gets the replacements.
- replace_string() : string
- Replaces the placeholders in a string.
Properties
$block_details
The class for holding the block details.
protected
Block_Details
$block_details
Methods
__construct()
Constructor.
public
__construct(Block_Details $block_details) : mixed
Parameters
- $block_details : Block_Details
-
The block details.
get_replacements()
Gets the replacements.
public
get_replacements() : array<string|int, mixed>
Return values
array<string|int, mixed>replace_string()
Replaces the placeholders in a string.
public
replace_string(string $string) : string
Parameters
- $string : string
-
The string to replace the placeholders in.