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

NameType(s)Description
$selectorstring

See the update() method for details

$contentstring

Markup to prepend

$markupstring

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