FluidTYPO3\Fluidcontent\Hooks\WizardItemsHookSubscriber::appendToWhiteAndBlacklistFromComponent PHP Method

appendToWhiteAndBlacklistFromComponent() protected method

protected appendToWhiteAndBlacklistFromComponent ( FluidTYPO3\Flux\Form\FormInterface $component, array $whitelist, array $blacklist ) : array
$component FluidTYPO3\Flux\Form\FormInterface
$whitelist array
$blacklist array
return array
    protected function appendToWhiteAndBlacklistFromComponent(FormInterface $component, array $whitelist, array $blacklist)
    {
        $allowed = $component->getVariable('Fluidcontent.allowedContentTypes');
        if (NULL !== $allowed) {
            $whitelist = array_merge($whitelist, GeneralUtility::trimExplode(',', $allowed));
        }
        $denied = $component->getVariable('Fluidcontent.deniedContentTypes');
        if (NULL !== $denied) {
            $blacklist = array_merge($blacklist, GeneralUtility::trimExplode(',', $denied));
        }
        return array($whitelist, $blacklist);
    }