public function variantStateExcluded($state)
    {
        foreach ($this->excludedVariantStates as $excludedstate) {
            $matches = true;

            foreach ($excludedstate as $variant => $variantstate) {
                if (!isset($state[$variant]) || $state[$variant] != $variantstate) {
                    $matches = false;
                    break;
                }
            }

            if ($matches) {
                return true;
            }
        }
    }
public function variantStateExcluded($state)
    {
        foreach ($this->excludedVariantStates as $excludedstate) {
            $matches = true;

            foreach ($excludedstate as $variant => $variantstate) {
                if (!isset($state[$variant]) || $state[$variant] != $variantstate) {
                    $matches = false;
                    break;
                }
            }

            if ($matches) {
                return true;
            }
        }
    }
public function variantStateExcluded ( $ state ) { foreach ( $ this -> excludedVariantStates as $ excludedstate ) { $ matches = true ; foreach ( $ excludedstate as $ variant => $ variantstate ) { if ( ! isset ( $ state [ $ variant ] ) || $ state [ $ variant ] != $ variantstate ) { $ matches = false ; break ; } } if ( $ matches ) { return true ; } } }
Returns true if some variant state should be ignored
Returns true if some variant state should be ignored