src/FilterSetting/Published/TranslatedCheckbox.php
public function prepareRules(IMetaModelFilter $objFilter, $arrFilterUrl)
    {
        if ($this->get('check_ignorepublished') && $arrFilterUrl['ignore_published' . $this->get('id')]) {
            return;
        }

        // Skip filter when in front end preview.
        if ($this->get('check_allowpreview') && BE_USER_LOGGED_IN) {
            return;
        }

        $objAttribute = $this->getMetaModel()->getAttributeById($this->get('attr_id'));
        if ($objAttribute) {
            $objFilterRule = new SearchAttribute($objAttribute, '1', $this->getMetaModel()->getActiveLanguage());
            $objFilter->addFilterRule($objFilterRule);
            return;
        }
        // Attribute not found, do not return anyting to prevent leaking of items.
        $objFilter->addFilterRule(new MetaModelFilterRuleStaticIdList([]));
    }
public function prepareRules(IMetaModelFilter $objFilter, $arrFilterUrl)
    {
        if ($this->get('check_ignorepublished') && $arrFilterUrl['ignore_published' . $this->get('id')]) {
            return;
        }

        // Skip filter when in front end preview.
        if ($this->get('check_allowpreview') && BE_USER_LOGGED_IN) {
            return;
        }

        $objAttribute = $this->getMetaModel()->getAttributeById($this->get('attr_id'));
        if ($objAttribute) {
            $objFilterRule = new SearchAttribute($objAttribute, '1', $this->getMetaModel()->getActiveLanguage());
            $objFilter->addFilterRule($objFilterRule);
            return;
        }
        // Attribute not found, do not return anyting to prevent leaking of items.
        $objFilter->addFilterRule(new MetaModelFilterRuleStaticIdList([]));
    }
{@inheritDoc}