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
!11489
Changes the core user module to handle permissions files with extra data.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Changes the core user module to handle permissions files with extra data.
issue/drupal-3495351:3495351-change-permissions.yml-files
into
11.x
Overview
0
Commits
2
Pipelines
2
Changes
17
Open
tolstoydotcom
requested to merge
issue/drupal-3495351:3495351-change-permissions.yml-files
into
11.x
1 month ago
Overview
0
Commits
2
Pipelines
2
Changes
17
Expand
Closes
#3495351
0
0
Merge request reports
Compare
11.x
version 1
92471a9b
1 month ago
11.x (HEAD)
and
latest version
latest version
43dc47f5
2 commits,
1 month ago
version 1
92471a9b
1 commit,
1 month ago
17 files
+
1239
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
17
Search (e.g. *.vue) (Ctrl+P)
core/modules/user/src/Attribute/PermissionsParser.php
0 → 100644
+
41
−
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