Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
group
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
group
Merge requests
!147
Proof of concept
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Proof of concept
issue/group-3427552:3427552-switch-to-php
into
3.3.x
Overview
0
Commits
4
Pipelines
6
Changes
11
Merged
Kristiaan Van den Eynde
requested to merge
issue/group-3427552:3427552-switch-to-php
into
3.3.x
1 year ago
Overview
0
Commits
4
Pipelines
6
Changes
11
Expand
Closes
#3427552
0
0
Merge request reports
Compare
3.3.x
version 4
bdb8659d
1 year ago
version 3
19f8af40
1 year ago
version 2
4a922709
1 year ago
version 1
721b4645
1 year ago
3.3.x (base)
and
latest version
latest version
d175e124
4 commits,
1 year ago
version 4
bdb8659d
4 commits,
1 year ago
version 3
19f8af40
3 commits,
1 year ago
version 2
4a922709
2 commits,
1 year ago
version 1
721b4645
1 commit,
1 year ago
11 files
+
159
−
91
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
11
Search (e.g. *.vue) (Ctrl+P)
modules/gnode/src/Plugin/Group/Relation/GroupNode.php
+
12
−
11
Options
@@ -3,22 +3,23 @@
namespace
Drupal\gnode\Plugin\Group\Relation
;
use
Drupal\Core\Form\FormStateInterface
;
use
Drupal\Core\StringTranslation\TranslatableMarkup
;
use
Drupal\group\Plugin\Attribute\GroupRelationType
;
use
Drupal\group\Plugin\Group\Relation\GroupRelationBase
;
/**
* Provides a group relation type for nodes.
*
* @GroupRelationType(
* id = "group_node",
* label = @Translation("Group node"),
* description = @Translation("Adds nodes to groups both publicly and privately."),
* entity_type_id = "node",
* entity_access = TRUE,
* reference_label = @Translation("Title"),
* reference_description = @Translation("The title of the node to add to the group"),
* deriver = "Drupal\gnode\Plugin\Group\Relation\GroupNodeDeriver",
* )
*/
#
[
GroupRelationType
(
id
:
'group_node'
,
entity_type_id
:
'node'
,
label
:
new
TranslatableMarkup
(
'Group node'
),
description
:
new
TranslatableMarkup
(
'Adds nodes to groups both publicly and privately.'
),
reference_label
:
new
TranslatableMarkup
(
'Title'
),
reference_description
:
new
TranslatableMarkup
(
'The title of the node to add to the group'
),
entity_access
:
TRUE
,
deriver
:
'Drupal\gnode\Plugin\Group\Relation\GroupNodeDeriver'
)]
class
GroupNode
extends
GroupRelationBase
{
/**
Loading