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

Create new subView to allow embedding a view inside and entity #35

Open
wants to merge 1 commit into
base: 8.x-1.x
Choose a base branch
from

Conversation

gheydon
Copy link

@gheydon gheydon commented May 7, 2020

Hi,

This allows you to embed a view inside an entity.

To use this you need to set up a single contextual filter, and then set the validator for this to be the id of the entity that it will be embedded in.

Once this is done the new field will be added to the entity as a field, and then the $value->id() will be passed as the argument.

So the case I am using this for is from a taxonomy term to pick up the nodes related but with a lot more control compared to an entity query.

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

Successfully merging this pull request may close these issues.

1 participant