In TYPO3, I have two plugins on the same page, lets call them pluginA and pluginB. The page gets called with parameters for pluginA like this:
tx_pluginA[action]=show&tx_pluginA[controller]=MyController&tx_pluginA[object]=1
Now in the show action of MyController I get the object directly as parameter in the show action.
But is there an easy way I can access this object from pluginB without having to manually parse the GET parameters and retrieving the object from the database?
Of course I could inject the repository and do something like:
$pluginsParams = GeneralUtility::_GET('tx_pluginB_model');
$title = $this->pluginBRepository->findByUid($pluginsParams['model'])->getTitle();
I was just wondering if there is a cleaner way without an additional database query.
There is a similar question here: TYPO3 Extbase getArguments from other Extension but its from 2013, so maybe there is a way now.