In my extension, I have defined constant values in the constants.typoscript
.
<code>menu {
# cat=menu; label=uid of submenu folder
submenuId = -1
# cat=menu; label=entry url
entryUrl = /
}
search {
# cat=search; label=navigation entry
entryId = -1
}
</code>
<code>menu {
# cat=menu; label=uid of submenu folder
submenuId = -1
# cat=menu; label=entry url
entryUrl = /
}
search {
# cat=search; label=navigation entry
entryId = -1
}
</code>
menu {
# cat=menu; label=uid of submenu folder
submenuId = -1
# cat=menu; label=entry url
entryUrl = /
}
search {
# cat=search; label=navigation entry
entryId = -1
}
Now I have written an ActionController
I think I have to get the values via $this->configurationManager
, but that seems to be null.
I also have seen this question, but that is outdated
With that deprecation note I came up with that:
<code>$backendConfiguration = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('menu');
</code>
<code>$backendConfiguration = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('menu');
</code>
$backendConfiguration = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('menu');
But that is only working for the value “backend”.
Do I miss something?
Best Regards
peni4142