Problem/Motivation

Add QueryableCanonicalSiteInterface (extends QueryableSiteInterface) with canonicalQueryAlter(), so a site can restrict Views results to entities for which it is the canonical/source site rather than any related site. The Sites views filter gains an optional "Canonical only" exposed checkbox (with its own expose + hide-if-not-default/hide-if-single visibility options and config schema), and SitesContentSql::doQueryAlter() calls canonicalQueryAlter() for sites implementing the interface when the checkbox is active.

Prerequisite for sites_group #3595527: QueryableCanonicalSiteInterface (canonical-only Views filter) on GroupSitesBase.

Issue fork sites-3605435

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

hydra created an issue. See original summary.

  • hydra committed 7e9e320c on 1.x
    feat: #3605435 Add canonical site filter support for Views (...
hydra’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.