resolveAltSides.php
Table of Contents
Functions
- resolveAltSides() : array{0: mixed, 1: mixed}
- Resolve the `alt` parameter into its key-side and value-side chains.
Functions
resolveAltSides()
Resolve the `alt` parameter into its key-side and value-side chains.
resolveAltSides(mixed $alt) : array{0: mixed, 1: mixed}
Three backward-compatible forms are supported:
"lower"/["trim","lower"](string or list) → key side only, the value is left untouched.{ "key":<chain>, "val":<chain> }(object) → explicit chain per side.{ "key":<chain>, "val":true }→val:truemirrors the key-side chain onto the value side.
The object form is told apart from a plain function chain by being an associative array (a list is a function chain, an associative array is the per-side object). Shared by the filter and facet builders (FilterTrait, FacetTrait) and the inline-condition helpers.
Parameters
- $alt : mixed
-
The raw
altparameter.
Tags
Return values
array{0: mixed, 1: mixed} —A [ keyChain , valChain ] pair; either entry is null for a no-op on that side.