rough-rainbow-3431
06/28/2023, 4:17 PMcreateView@AbstractTabs
method being called from controllers
$this->getFactory()->createProductFormEditTabs()->createView()
offers us a abstract build method, but at the point of the build the only thing i have in hands is the TabsViewTransfer $tabsViewTransfer
By introducing a plugin in here
ProductManagementDependencyProvider
protected function getProductAbstractFormEditTabsExpanderPlugins(): array
{
return [];
}
I can get the $tabsViewTransfer and manipulate it , but inside that plugin i still would need to know if I derived from add or edit controller
any ideas how to work around that ?
Thx a lot
In other words somehow I need by overriding this method protected function addImageTab(TabsViewTransfer $tabsViewTransfer)
to set a specific template depending a variable from controller.
Is there a way to get form container everything about the current request ? maybe i could distinguish inside that plugin from the request object ?
I guess I can get the request from with in factory like this
$this->getRequestStack()->getCurrentRequest();gorgeous-yacht-45595
06/29/2023, 9:29 AM