private function addGroupedContentTypes(MenuEntry $groupEntry, array $contentTypes)
    {
        foreach ($contentTypes as $contentTypeKey => $contentType) {
            /** @var Bag $contentType */
            $groupEntry->add(
                MenuEntry::create($contentTypeKey)
                    ->setRoute('overview', ['contenttypeslug' => $contentTypeKey])
                    ->setLabel($contentType->get('name'))
                    ->setIcon($contentType->get('icon_many', 'fa:th-list'))
                    ->setPermission('contenttype:' . $contentTypeKey)
            );
        }
    }
private function addGroupedContentTypes(MenuEntry $groupEntry, array $contentTypes)
    {
        foreach ($contentTypes as $contentTypeKey => $contentType) {
            /** @var Bag $contentType */
            $groupEntry->add(
                MenuEntry::create($contentTypeKey)
                    ->setRoute('overview', ['contenttypeslug' => $contentTypeKey])
                    ->setLabel($contentType->get('name'))
                    ->setIcon($contentType->get('icon_many', 'fa:th-list'))
                    ->setPermission('contenttype:' . $contentTypeKey)
            );
        }
    }
private function addGroupedContentTypes ( MenuEntry $ groupEntry , array $ contentTypes ) { foreach ( $ contentTypes as $ contentTypeKey => $ contentType ) { /** @var Bag $contentType */ $ groupEntry -> add ( MenuEntry :: create ( $ contentTypeKey ) -> setRoute ( 'overview' , [ 'contenttypeslug' => $ contentTypeKey ] ) -> setLabel ( $ contentType -> get ( 'name' ) ) -> setIcon ( $ contentType -> get ( 'icon_many' , 'fa:th-list' ) ) -> setPermission ( 'contenttype:' . $ contentTypeKey ) ) ; } }
Add a group's children.

@param MenuEntry $groupEntry
@param array     $contentTypes
Add a group s children .