Merx

$productList->getAttribute()

Extracts an attribute value from the given element in the collection. This is useful if elements in the collection might be objects, arrays or anything else and you need to get the value independently from that. We use it for filter.

$productList->getAttribute(object|array $item, string $attribute, string|bool $split = false, $related = null)

Parameters

Name Type Default
$item object or array -
$attribute string -
$split string or bool false
$related mixed null

Parent class

Wagnerwagner\Merx\ProductList inherited from Kirby\Toolkit\Collection