FluidTYPO3\Flux\Hooks\WizardItemsHookSubscriber::appendToWhiteAndBlacklistFromComponent PHP Метод

appendToWhiteAndBlacklistFromComponent() защищенный Метод

protected appendToWhiteAndBlacklistFromComponent ( FluidTYPO3\Flux\Form\FormInterface $component, array $whitelist, array $blacklist ) : array
$component FluidTYPO3\Flux\Form\FormInterface
$whitelist array
$blacklist array
Результат array
    protected function appendToWhiteAndBlacklistFromComponent(FormInterface $component, array $whitelist, array $blacklist)
    {
        $allowed = $component->getVariable('allowedContentTypes');
        if (NULL !== $allowed) {
            $whitelist = array_merge($whitelist, GeneralUtility::trimExplode(',', $allowed));
        }
        $denied = $component->getVariable('deniedContentTypes');
        if (NULL !== $denied) {
            $blacklist = array_merge($blacklist, GeneralUtility::trimExplode(',', $denied));
        }
        return array($whitelist, $blacklist);
    }