42 foreach ($this->providers as $provider) {
43 $items_to_merge[] = $provider->getMetaBarItems();
45 $this->items = array_merge([], ...$items_to_merge);
86 return count($this->items) > 0;
105 return $a->getPosition() >
$b->getPosition();
115 return function (
isItem &$item) {
117 $children = $item->getChildren();
119 $item = $item->withChildren($children);
130 return static function (
isItem $item) {
131 return ($item->isAvailable() && $item->isVisible());
An exception for terminatinating execution or to throw for unit testing.
Class AbstractBaseCollector.
Class MetaBarMainCollector.
__construct(array $providers)
MetaBarMainCollector constructor.
sortItemsForUIRepresentation()
prepareItemsForUIRepresentation()
filterItemsByVisibilty(bool $async_only=false)
cleanupItemsForUIRepresentation()
getItemsForUIRepresentation()
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples