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

NameType(s)Description
$namestring
$valuestring bool

Value to find, or specify boolean true for boolean attribute without value

$htmlstring

Return value

bool

Returns false if it doesn't appear, true if it does


WireMarkupRegions methods and properties

API reference based on ProcessWire core version 3.0.268