-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Gizra#242 Remove og_ui dependency, replace defines with OgAccess class and its consts, also in the whole module. * Gizra#242 Grammar issue is fixed. * Gizra#242 Introduce service injection and replace t() with the injected one. * Gizra#242 PHPCS fixes.
- Loading branch information
Showing
6 changed files
with
69 additions
and
54 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -7,4 +7,3 @@ type: module | |
|
||
dependencies: | ||
- og | ||
- og_ui |
This file contains 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 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,35 @@ | ||
<?php | ||
|
||
namespace Drupal\og_access; | ||
|
||
/** | ||
* Helper class for constants. | ||
*/ | ||
class OgAccess { | ||
|
||
/** | ||
* The access realm of group member. | ||
*/ | ||
const OG_ACCESS_REALM = 'og_access'; | ||
|
||
/** | ||
* Group public access field. | ||
*/ | ||
const OG_ACCESS_FIELD = 'group_access'; | ||
|
||
/** | ||
* Group public access field. | ||
*/ | ||
const OG_ACCESS_CONTENT_FIELD = 'group_content_access'; | ||
|
||
/** | ||
* Public group/group content access. | ||
*/ | ||
const OG_ACCESS_PUBLIC = 0; | ||
|
||
/** | ||
* Private group/group content access. | ||
*/ | ||
const OG_ACCESS_PRIVATE = 1; | ||
|
||
} |
This file contains 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 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 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