public function getAllRequirementsMet(AbstractFacet $facet)
    {
        $requirements = $facet->getRequirements();
        if (!is_array($requirements) || count($requirements) === 0) {
            return true;
        }

        foreach ($requirements as $requirement) {
            $requirementMet = $this->getRequirementMet($facet, $requirement);
            $requirementMet = $this->getNegationWhenConfigured($requirementMet, $requirement);

            if ($requirementMet) {
                // early return
                return true;
            }
        }

        return false;
    }
public function getAllRequirementsMet(AbstractFacet $facet)
    {
        $requirements = $facet->getRequirements();
        if (!is_array($requirements) || count($requirements) === 0) {
            return true;
        }

        foreach ($requirements as $requirement) {
            $requirementMet = $this->getRequirementMet($facet, $requirement);
            $requirementMet = $this->getNegationWhenConfigured($requirementMet, $requirement);

            if ($requirementMet) {
                // early return
                return true;
            }
        }

        return false;
    }
public function getAllRequirementsMet ( AbstractFacet $ facet ) { $ requirements = $ facet -> getRequirements ( ) ; if ( ! is_array ( $ requirements ) || count ( $ requirements ) === 0 ) { return true ; } foreach ( $ requirements as $ requirement ) { $ requirementMet = $ this -> getRequirementMet ( $ facet , $ requirement ) ; $ requirementMet = $ this -> getNegationWhenConfigured ( $ requirementMet , $ requirement ) ; if ( $ requirementMet ) { // early return return true ; } } return false ; }
Checks if facet meets all requirements.

Evaluates configuration in "plugin.tx_solr.search.faceting.facets.[facetName].requirements",

@param AbstractFacet $facet
@return bool true if facet might be rendered
Checks if facet meets all requirements .