WireMarkupRegions::hasAttribute()
Does the given attribute name and value appear somewhere in the given html?
Usage
$bool = $wireMarkupRegions->hasAttribute(string $name, $value, string $html);Arguments
| Name | Type(s) | Description |
|---|---|---|
$name | string | |
$value | string bool | Value to find, or specify boolean true for boolean attribute without value |
$html | string |
Return value
boolReturns false if it doesn't appear, true if it does
WireMarkupRegions methods and properties
API reference based on ProcessWire core version 3.0.268