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]);
                }
            }
        }
    }
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]);
                }
            }
        }
    }
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 ] ) ; } } } }
Checks if a language is allowed in this particular container - only this one container defines the allowed languages regardless of any parent

@param array $items The items of the current language list
@param int $gridContainerId The ID of the current container
Checks if a language is allowed in this particular container - only this one container defines the allowed languages regardless of any parent