API / Minn\Blocks / Selector

Selector final class

Minn\Blocks\Selector · public/minn/src/Minn/Blocks/Selector.php · 43 lines

The CSS selector a block type declares for its root or for one feature, from its `selectors` map or the older per-support keys.

Public

staticresolve(array $selectors, array $supports, array|string|null $target, bool $fallback, string $defaultClass): ?string#

The CSS selector a block's style targets, or null.

$selectorsarray<string, mixed>the block type's selectors map
$supportsarray<string, mixed>the block type's supports
$targetstring|list<string>|null'root', a dotted feature path, or a path list

Internals 1

Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.

privateat(array $tree, array $path): mixed#
$pathlist<string>