src/Compo/Sonata/AdminBundle/Admin/BreadcrumbsBuilder.php
private function createMenuItem(
        AdminInterface $admin,
        ItemInterface $menu,
        $name,
        $translationDomain = null,
        array $options = []
    ) {
        $options = array_merge([
            'extras' => [
                'translation_domain' => $translationDomain,
            ],
        ], $options);

        return $menu->addChild(
            $admin->getLabelTranslatorStrategy()->getLabel(
                $name,
                'breadcrumb',
                'link'
            ),
            $options
        );
    }
private function createMenuItem(
        AdminInterface $admin,
        ItemInterface $menu,
        $name,
        $translationDomain = null,
        array $options = []
    ) {
        $options = array_merge([
            'extras' => [
                'translation_domain' => $translationDomain,
            ],
        ], $options);

        return $menu->addChild(
            $admin->getLabelTranslatorStrategy()->getLabel(
                $name,
                'breadcrumb',
                'link'
            ),
            $options
        );
    }
private function createMenuItem ( AdminInterface $ admin , ItemInterface $ menu , $ name , $ translationDomain = null , array $ options = [ ] ) { $ options = array_merge ( [ 'extras' => [ 'translation_domain' => $ translationDomain , ] , ] , $ options ) ; return $ menu -> addChild ( $ admin -> getLabelTranslatorStrategy ( ) -> getLabel ( $ name , 'breadcrumb' , 'link' ) , $ options ) ; }
Creates a new menu item from a simple name. The name is normalized and
translated with the specified translation domain.

@param AdminInterface $admin             used for translation
@param ItemInterface  $menu              will be modified and returned
@param string         $name              the source of the final label
@param string         $translationDomain for label translation
@param array          $options           menu item options

@return ItemInterface
Creates a new menu item from a simple name . The name is normalized and translated with the specified translation domain .