@@ -64,7 +64,7 @@ public function __construct(
6464
6565 public function addPopulateButton (ButtonBar $ buttonBar ): void
6666 {
67- $ populateButton = $ buttonBar -> makeLinkButton ()
67+ $ populateButton = $ this -> componentFactory -> createLinkButton ()
6868 ->setHref ($ this ->uriBuilder ->reset ()->uriFor ('populate ' ))
6969 ->setTitle ('Create example data ' )
7070 ->setShowLabelText (true )
@@ -235,13 +235,13 @@ private function modifyDocHeaderComponent(ModuleTemplate $view, string &$context
235235
236236 $ metaInformation = $ this ->getMetaInformation ();
237237 if (is_array ($ metaInformation )) {
238- $ view ->getDocHeaderComponent ()->setMetaInformation ($ metaInformation );
238+ $ view ->getDocHeaderComponent ()->setPageBreadcrumb ($ metaInformation );
239239 }
240240 }
241241
242242 private function addReloadButton (ButtonBar $ buttonBar ): void
243243 {
244- $ reloadButton = $ buttonBar -> makeLinkButton ()
244+ $ reloadButton = $ this -> componentFactory -> createLinkButton ()
245245 ->setHref ($ this ->request ->getAttribute ('normalizedParams ' )->getRequestUri ())
246246 ->setTitle ($ this ->getLanguageService ()->sL ('core.core:labels.reload ' ))
247247 ->setIcon ($ this ->iconFactory ->getIcon ('actions-refresh ' , IconSize::SMALL ));
@@ -250,7 +250,7 @@ private function addReloadButton(ButtonBar $buttonBar): void
250250
251251 private function addShortCutButton (ButtonBar $ buttonBar ): void
252252 {
253- $ shortcutButton = $ buttonBar -> makeShortcutButton ()
253+ $ shortcutButton = $ this -> componentFactory -> createShortcutButton ()
254254 ->setRouteIdentifier ('blog_example ' )
255255 ->setDisplayName ($ this ->getLanguageService ()->sL ('blog_example.messages:administration.menu.index ' ));
256256 $ buttonBar ->addButton ($ shortcutButton , ButtonBar::BUTTON_POSITION_RIGHT );
@@ -280,12 +280,12 @@ private function buildMenu(ModuleTemplate $view, string &$context): Menu
280280 //$menu = $this->componentFactory->createMenu();
281281 //$menu->setIdentifier('viewSelector')->setLabel('View');
282282
283- $ menu = $ view -> getDocHeaderComponent ()-> getMenuRegistry ()-> makeMenu ();
283+ $ menu = $ this -> componentFactory -> createMenu ();
284284 $ menu ->setIdentifier ('BlogExampleModuleMenu ' )->setLabel ('View ' );
285285
286286 foreach ($ menuItems as $ menuItemConfig ) {
287287 $ isActive = $ this ->request ->getControllerActionName () === $ menuItemConfig ['action ' ];
288- $ menuItem = $ menu -> makeMenuItem ()
288+ $ menuItem = $ this -> componentFactory -> createMenuItem ()
289289 ->setTitle ($ menuItemConfig ['label ' ])
290290 ->setHref ($ this ->uriBuilder ->reset ()->uriFor (
291291 $ menuItemConfig ['action ' ],
0 commit comments