eZ\Publish\Core\Search\Elasticsearch\Content\Location\CriterionVisitor\Visibility::canVisit PHP Method

canVisit() public method

Check if visitor is applicable to current criterion.
public canVisit ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion ) : boolean
$criterion eZ\Publish\API\Repository\Values\Content\Query\Criterion
return boolean
    public function canVisit(Criterion $criterion)
    {
        return $criterion instanceof Criterion\Visibility && $criterion->operator === Operator::EQ;
    }