Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entity owner (author) site resolver plugin #67

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

claudiu-cristea
Copy link

@claudiu-cristea claudiu-cristea commented Dec 20, 2021

Let's take a very small organization case or even a family where 2-3 members are keeping, each, their personal blog but for maintenance reasons they share the same Drupal backend. It would be helpful to determine the site by the node owner (author)

@vercel
Copy link

vercel bot commented Dec 20, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/chapter-three/next-drupal/9uHcZrez2aAmxEc9XjygcxFtdfkz
✅ Preview: https://next-drupal-git-fork-claudiu-cristea-entit-4dc998-chapter-three.vercel.app

@shadcn
Copy link
Collaborator

shadcn commented Dec 21, 2021

Nice. This is a great example of extending the SiteResolver plugin. Happy to see this :)

I'll take a look at it.

(Thank you for including tests. Appreciate it)

/**
* Selects the site based on the entity owner (author).
*
* Available for Drupal 9.3.x only: In Next.js site, you can filter resource
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Available for Drupal 9.3.x only

This should be removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants