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
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
Comment #4
hydra commented