[TASK] Enable site config utility to handle references

This commit is contained in:
Philipp Dieter
2022-04-27 13:28:02 +02:00
parent c72f1fd4de
commit 138c9373ff
2 changed files with 24 additions and 3 deletions

View File

@@ -34,6 +34,13 @@ class SiteConfigViewHelper extends AbstractViewHelper
'The config key to get',
true
);
$this->registerArgument(
'siteConfig',
'bool',
'Limit the typoscript to the config.site part',
false,
true
);
}
/**
@@ -51,7 +58,7 @@ class SiteConfigViewHelper extends AbstractViewHelper
) {
return SiteConfigUtility::getByPath(
$arguments['key'],
false
$arguments['siteConfig']
);
}
}