This repository was archived by the owner on Aug 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 130
Add a group formatter for easier subscribe/ unsubscribe #141
Merged
amitaibu
merged 59 commits into
Gizra:8.x-1.x
from
amitaibu:40-group-formatter-unit-tests
Aug 27, 2016
Merged
Changes from all commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
e4a3d2a
Add group field type, add subscribe formatter
damiankloip fd8ad87
Add default display to og_ui entity_bundle_info_alter instead, add se…
damiankloip 6dcdbea
Convert _og_get_group_audience_fields to Og:: method
damiankloip 480a9b2
Add computed boolean value for group field value
damiankloip 1e3f65b
Add helper to get option labels from Og::getAllGroupAudienceFields
damiankloip ddd6cc4
Add default setting value for field_name, always use audience field o…
damiankloip 0d680c3
Feedback form Amitai and code tidy of GroupSubscriberFormatter::viewE…
damiankloip c880869
Simplify settingsSummary method
damiankloip 2c03acd
Remove usage of group_value setting
damiankloip 9caeb7e
Use Og::isMember
damiankloip 3a0d662
Add usage of OgGroupAudienceHelper::checkFieldCardinality
damiankloip 1ad173e
Use field_name setting
damiankloip 13f5efc
Convert links to use url parameters
damiankloip b0489c7
Use OgAccess::userAccess in group formatter
damiankloip 69a330f
Rename subscribe/unsubscribe routes
damiankloip 76951bc
Update subscribe formatter to use OgGroupAudienceHelper::getMatchingF…
damiankloip 2aa966e
Merge 8.x-1.x
amitaibu cc5c147
Merge branch 'og-ui-subscribe-routes' into 40-group-formatter
amitaibu 28e4918
Cleanup old code
amitaibu 6cef122
Prevent caching of links
amitaibu b566311
Sniffer fixes
amitaibu 6d4a5e3
Move formatter to core
amitaibu f693e8c
Replace field ID
amitaibu f399bb0
Improve the field description
amitaibu f831620
Starting adding unit tests
amitaibu b7b783f
Fix test
amitaibu 1b25120
extend tests [skip ci]
amitaibu 9a18d8c
Merge branch '8.x-1.x' into 40-group-formatter
amitaibu 8aa5a40
Fix group owner test
amitaibu ef60105
Sniffer fixes
amitaibu 0848737
Expand tests
amitaibu 0a0e7b9
Merge branch '8.x-1.x' into 40-group-formatter
amitaibu b44d90d
Add more mocking
amitaibu e187985
Fix typo
amitaibu f3a04aa
Fix logic and add tests
amitaibu f3d1763
Fix pending subscribe
amitaibu e871312
Tests the formatter for no subscribe permission.
amitaibu c873f58
Test blocked member
amitaibu 2d0b5b6
Remove unsubscribe permission
amitaibu f68b8f7
Add GroupSubscribeFormatterTest.php
amitaibu 8030e43
Sniffer fixes
amitaibu 8339ab7
Cleanup test
amitaibu b73545b
Add manadatory weight property
amitaibu 4437283
Fix tests
amitaibu 5171578
Improve comment location
amitaibu 56c17a0
Remove obsolete permission
amitaibu e38d3f9
Upcast the entity ID in the unsubscribe route.
sandervd 08c161a
One does not simply hijack @amitaibu's PR without failing the tests.
pfrenssen 4db893a
Rename class to OgGroupAlwaysTrue
amitaibu 7302fd9
Inject services
amitaibu dd9d9d0
Merge branch '40-group-formatter-unit-tests' of github.com:amitaibu/o…
amitaibu 57e2f8d
Sniffer fixes
amitaibu 48f6e8e
Lock travis version
amitaibu d5f89b0
Fix constructor
amitaibu 0414f78
Adapt unit tests
amitaibu 17405dc
Merge 8.x-1.x
amitaibu 0bd2a8b
convert GroupManager to GroupTypeManager
amitaibu 19d486f
Comments fixes
amitaibu 9d2eaab
Call correct method
amitaibu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| <?php | ||
|
|
||
| namespace Drupal\og; | ||
|
|
||
| use Drupal\Core\TypedData\Plugin\DataType\BooleanData; | ||
|
|
||
| /** | ||
| * Overridden boolean data type to hardcode TRUE. | ||
| */ | ||
| class OgGroupAlwaysTrue extends BooleanData { | ||
|
|
||
| /** | ||
| * {@inheritdoc} | ||
| */ | ||
| public function getValue() { | ||
| return TRUE; | ||
| } | ||
|
|
||
| /** | ||
| * {@inheritdoc} | ||
| */ | ||
| public function getCastedValue() { | ||
| return $this->getValue(); | ||
| } | ||
|
|
||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 is the only change in this file. It seems to be unused, but it is strange that PHP_CodeSniffer did not pick up on this.