I need to get the actual “general record storage page id”. I found the following snipplet but the variable is empty even though the storagePid is set on the page.
$config = $this->configurationManager->getConfiguration(Tx_Extbase_Configuration_ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
var_dump($config['persistence']['storagePid']);
Any help would be appreciated
I’m not quite sure, what are you trying to get. Snippet you provided gets without problems the storagePid set in constants for your extension, the same as this code from
setup.txt:if you have problems with getting your storagePid with provided snippet also can modify your
setup.txtand make sure that the value will be also propagated intosettingsscope:then in your controller you can catch it with simpler code:
if it will not work for you that means, you didn’t set proper value in
Constantsfor YourExt and/or didn’t cleared the caches in the BE.BTW: Maybe if you’ll be more specific I could send better answer.