FluidTYPO3\Flux\Hooks\WizardItemsHookSubscriber::applyBlacklist PHP Method

applyBlacklist() protected method

protected applyBlacklist ( array $items, array $blacklist ) : array
$items array
$blacklist array
return array
    protected function applyBlacklist(array $items, array $blacklist)
    {
        $blacklist = array_unique($blacklist);
        if (0 < count($blacklist)) {
            foreach ($blacklist as $contentElementType) {
                foreach ($items as $name => $item) {
                    if ($item['tt_content_defValues']['CType'] === $contentElementType) {
                        unset($items[$name]);
                    }
                }
            }
        }
        return $items;
    }