-
Notifications
You must be signed in to change notification settings - Fork 132
Default argument for current user memberships. #253
Conversation
This comment has been minimized.
This comment has been minimized.
f6d5007
to
1e6f95f
Compare
This comment has been minimized.
This comment has been minimized.
*/ | ||
public function getArgument() { | ||
// Currently restricted to node entities. | ||
return implode(',', $this->getCurrentUserGroupIds('node')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could make it configurable - and expose the group related entities
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That does sound a worthwhile aim.
I would likely need to return to this at a later date if I were to help with that though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some small comments wrt the phpdocs.
Since a user with the permission "administer group" has access to all of the groups, wouldn't it be useful to add an option to list all groups for users with this permission?
With exception for @amitaibu's remark on making the entity type configurable this seems to be ready.
@tombola, could you add me as an author so I can fix the remarks/tests? |
Closing in favor of #565. |
Issue #254:
Default argument to populate the contextual filter (eg groups_audience) used by the view.