[ 'Individuals' => [ 'label' => __('Individuals'), 'url' => '/individuals/index', 'children' => [ 'index' => [ 'url' => '/individuals/index', 'label' => __('List individuals') ], 'add' => [ 'url' => '/individuals/add', 'label' => __('Add individual') ], 'view' => [ 'url' => '/individuals/view/{{id}}', 'label' => __('View individual'), 'actions' => ['delete', 'edit', 'view'] ], 'edit' => [ 'url' => '/individuals/edit/{{id}}', 'label' => __('Edit individual'), 'actions' => ['edit', 'delete', 'view'] ], 'delete' => [ 'url' => '/individuals/delete/{{id}}', 'label' => __('Delete individual'), 'actions' => ['delete', 'edit', 'view'] ] ] ], 'Organisations' => [ 'label' => __('Organisations'), 'url' => '/organisations/index', 'children' => [ 'index' => [ 'url' => '/organisations/index', 'label' => __('List organisations') ], 'add' => [ 'url' => '/organisations/add', 'label' => __('Add organisation') ], 'view' => [ 'url' => '/organisations/view/{{id}}', 'label' => __('View organisation'), 'actions' => ['delete', 'edit', 'view'] ], 'edit' => [ 'url' => '/organisations/edit/{{id}}', 'label' => __('Edit organisation'), 'actions' => ['edit', 'delete', 'view'] ], 'delete' => [ 'url' => '/organisations/delete/{{id}}', 'label' => __('Delete organisation'), 'actions' => ['delete', 'edit', 'view'] ] ] ] ] ]; $children = ''; if (isset($menu[$metaGroup])) { foreach ($menu[$metaGroup] as $scope => $scopeData) { $children .= sprintf( '