WireMarkupRegions::find()
Locate and return all regions of markup having the given attribute
Usage
// basic usage
$array = $wireMarkupRegions->find(string $selector, string $markup);
// usage with all arguments
$array = $wireMarkupRegions->find(string $selector, string $markup, array $options = []);Arguments
| Name | Type(s) | Description |
|---|---|---|
$selector | string | Specify one of the following:
|
$markup | string | HTML document markup to perform the find in. |
$options (optional) | array | Optional options to modify default behavior:
|
Return value
arrayReturns one of the following:
- Associative array of [ 'id' => 'markup' ] when finding specific attributes or #id attributes.
- Regular array of markup regions when finding regions having a specific class attribute.
- Associative array of verbose information when the verbose option is used.
Exceptions
Method can throw exceptions on error:
WireException- if given invalid $find string
WireMarkupRegions methods and properties
API reference based on ProcessWire core version 3.0.268