public function checkForAllowedLanguages(array &$items, $gridContainerId)
    {
        if (!$gridContainerId) {
            return;
        }
        $parentContainer = BackendUtility::getRecordWSOL('tt_content', $gridContainerId);
        if (!empty($items) && (int)$parentContainer['uid'] > 0) {
            foreach ($items as $item => $valueArray) {
                if ((int)$parentContainer['sys_language_uid'] > -1 && (int)$valueArray[1] !== (int)$parentContainer['sys_language_uid']) {
                    unset($items[$item]);
                }
            }
        }
    }