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);
}