Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

Provide a ContextDefinition plugin #512

Open
MPParsley opened this issue May 22, 2019 · 0 comments
Open

Provide a ContextDefinition plugin #512

MPParsley opened this issue May 22, 2019 · 0 comments

Comments

@MPParsley
Copy link
Collaborator

In #483 we added a block Drupal\og\Plugin\Block\MemberCountBlock that shows the number of members in the current group.

Instead of using dependency injection for the Drupal\og\OgContextInterface we could write a Drupal\Core\Plugin\Context\ContextDefinition plugin so any custom block can use a context_definition to get the current group.

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

No branches or pull requests

1 participant