WireMarkupRegions::before()
Insert region(s) that match the given $selector before the given $content markup
Usage
// basic usage
$string = $wireMarkupRegions->before(string $selector, string $content, string $markup);
// usage with all arguments
$string = $wireMarkupRegions->before(string $selector, string $content, string $markup, array $options = []);Arguments
| Name | Type(s) | Description |
|---|---|---|
$selector | string | See the update() method for details |
$content | string | Markup to prepend |
$markup | string | Document markup where region(s) exist |
$options (optional) | array | See the update() method for details |
Return value
string
WireMarkupRegions methods and properties
API reference based on ProcessWire core version 3.0.268