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;
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());
__construct(array $providers)
MetaBarMainCollector constructor.
Class AbstractBaseCollector.
cleanupItemsForUIRepresentation()
prepareItemsForUIRepresentation()
filterItemsByVisibilty(bool $async_only=false)
sortItemsForUIRepresentation()
Class MetaBarMainCollector.
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples
getItemsForUIRepresentation()