excludeDoktypes cannot overwrite some default values
Opened this issue · 0 comments
nm-dh commented
In the function getExcludeDoktypes(array $configuration) in the class MenuRepository.php the following doctypes are always suppressed and I have no possibility to activate e.g. the BE User Section via excludeDoktypes.
protected $excludedDoktypes = [
PageRepository::DOKTYPE_BE_USER_SECTION,
PageRepository::DOKTYPE_RECYCLER,
PageRepository::DOKTYPE_SYSFOLDER,
];
protected function getExcludeDoktypes(array $configuration): array
{
if (!empty($configuration['excludeDoktypes'])) {
$excludedDoktypes = array_unique(array_merge($this->excludedDoktypes, GeneralUtility::intExplode(',', (string)$configuration['excludeDoktypes'])));
} else {
$excludedDoktypes = $this->excludedDoktypes;
}
return $excludedDoktypes;
}