$this->
View()->
assign('menu',
$menuItems);
} /**
* Returns if the first run wizard should be loaded in the current backend instance
*
* @param stdClass $identity
*/
private function isFirstRunWizardEnabled($identity): bool
{ // Only admins can see the wizard
if ($identity->role->
getAdmin()) { return $this->container->
get(Shopware_Components_Config::
class)->
get('firstRunWizardEnabled', false
);
} return false;
} private function buildTree(array
$nodes, ?int
$parentId = null
): array
{ $menuTree =
[];
foreach ($nodes as $key =>
$node) { if ($node['parentId'
] ==
$parentId) {