File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
app/code/Magento/Ui/Component/Layout Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -350,15 +350,21 @@ protected function initAreas()
350
350
protected function addNavigationBlock ()
351
351
{
352
352
$ pageLayout = $ this ->component ->getContext ()->getPageLayout ();
353
+
354
+ $ navName = 'tabs_nav ' ;
355
+ if ($ pageLayout ->hasElement ($ navName )) {
356
+ $ navName = $ this ->component ->getName () . '_tabs_nav ' ;
357
+ }
358
+
353
359
/** @var \Magento\Ui\Component\Layout\Tabs\Nav $navBlock */
354
360
if (isset ($ this ->navContainerName )) {
355
361
$ navBlock = $ pageLayout ->addBlock (
356
362
\Magento \Ui \Component \Layout \Tabs \Nav::class,
357
- ' tabs_nav ' ,
363
+ $ navName ,
358
364
$ this ->navContainerName
359
365
);
360
366
} else {
361
- $ navBlock = $ pageLayout ->addBlock (\Magento \Ui \Component \Layout \Tabs \Nav::class, ' tabs_nav ' , 'content ' );
367
+ $ navBlock = $ pageLayout ->addBlock (\Magento \Ui \Component \Layout \Tabs \Nav::class, $ navName , 'content ' );
362
368
}
363
369
$ navBlock ->setTemplate ('Magento_Ui::layout/tabs/nav/default.phtml ' );
364
370
$ navBlock ->setData ('data_scope ' , $ this ->namespace );
You can’t perform that action at this time.
0 commit comments