Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
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
drupal
Merge requests
!11720
First commit of extensions to permissions.yml files (issue
#3495351
).
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
First commit of extensions to permissions.yml files (issue
#3495351
).
issue/drupal-3495351:3495351-change-permissions2
into
11.x
Overview
0
Commits
11
Pipelines
11
Changes
18
Open
tolstoydotcom
requested to merge
issue/drupal-3495351:3495351-change-permissions2
into
11.x
1 month ago
Overview
0
Commits
11
Pipelines
11
Changes
18
Expand
Closes
#3495351
0
0
Merge request reports
Compare
11.x
version 10
14f27636
3 weeks ago
version 9
062511d3
3 weeks ago
version 8
ebbe8f66
3 weeks ago
version 7
8375d932
3 weeks ago
version 6
7aa3fa4c
4 weeks ago
version 5
e8e5dd61
4 weeks ago
version 4
a145f803
4 weeks ago
version 3
aa322afa
4 weeks ago
version 2
56b03849
4 weeks ago
version 1
c9e733a9
1 month ago
11.x (HEAD)
and
latest version
latest version
621f2746
11 commits,
3 weeks ago
version 10
14f27636
10 commits,
3 weeks ago
version 9
062511d3
9 commits,
3 weeks ago
version 8
ebbe8f66
8 commits,
3 weeks ago
version 7
8375d932
7 commits,
3 weeks ago
version 6
7aa3fa4c
6 commits,
4 weeks ago
version 5
e8e5dd61
5 commits,
4 weeks ago
version 4
a145f803
4 commits,
4 weeks ago
version 3
aa322afa
3 commits,
4 weeks ago
version 2
56b03849
2 commits,
4 weeks ago
version 1
c9e733a9
1 commit,
1 month ago
18 files
+
1285
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
18
Search (e.g. *.vue) (Ctrl+P)
core/modules/user/src/Attribute/PermissionsParser.php
0 → 100644
+
40
−
0
Options
<?php
declare
(
strict_types
=
1
);
namespace
Drupal\user\Attribute
;
use
Drupal\Component\Plugin\Attribute\Plugin
;
use
Drupal\Core\StringTranslation\TranslatableMarkup
;
/**
* Defines a PermissionsParser attribute for plugin discovery.
*
* Plugin Namespace: Plugin\PermissionsParser.
*/
#[\Attribute(\Attribute::TARGET_CLASS)]
class
PermissionsParser
extends
Plugin
{
/**
* Constructs a PermissionsParser object.
*
* @param string $id
* The plugin ID.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup|null $label
* The title of the parser.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup|null $description
* The description of the parser.
* @param int $weight
* The ordering of the parser in lists.
* @param bool $legacy
* If this is legacy data or not.
*/
public
function
__construct
(
public
readonly
string
$id
,
public
readonly
?TranslatableMarkup
$label
=
NULL
,
public
readonly
?TranslatableMarkup
$description
=
NULL
,
public
readonly
int
$weight
=
0
,
public
readonly
bool
$legacy
=
FALSE
,
)
{}
}
Loading