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

applyWhitelist() protected method

protected applyWhitelist ( array $items, array $whitelist ) : array
$items array
$whitelist array
return array
    protected function applyWhitelist(array $items, array $whitelist)
    {
        if (0 < count($whitelist)) {
            foreach ($items as $name => $item) {
                if (FALSE !== strpos($name, '_') && 'fluidcontent_content' === $item['tt_content_defValues']['CType'] && FALSE === in_array($item['tt_content_defValues']['tx_fed_fcefile'], $whitelist)) {
                    unset($items[$name]);
                }
            }
        }
        return $items;
    }