menuConfiguration[$forPath]; } else { $items = &$this->menuConfiguration; } if ($items) { uasort( $items, function ($a, $b) { return $a['sorting'] > $b['sorting']; } ); } return new \ArrayIterator($items); } }