Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
key
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
key
Merge requests
!31
Add attributes for all annotations
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Add attributes for all annotations
issue/key-3483550:key_provider_attribute
into
8.x-1.x
Overview
1
Commits
8
Pipelines
3
Changes
14
Closed
Patrick Kenny
requested to merge
issue/key-3483550:key_provider_attribute
into
8.x-1.x
6 months ago
Overview
1
Commits
8
Pipelines
3
Changes
14
Expand
0
0
Merge request reports
Compare
8.x-1.x
version 2
c7f70227
6 months ago
version 1
4e6c57e4
6 months ago
8.x-1.x (base)
and
latest version
latest version
77cc6e18
8 commits,
6 months ago
version 2
c7f70227
5 commits,
6 months ago
version 1
4e6c57e4
4 commits,
6 months ago
14 files
+
254
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
14
Search (e.g. *.vue) (Ctrl+P)
src/Attribute/KeyInput.php
0 → 100644
+
31
−
0
Options
<?php
namespace
Drupal\key\Attribute
;
use
Drupal\Component\Plugin\Attribute\Plugin
;
use
Drupal\Core\StringTranslation\TranslatableMarkup
;
/**
* Defines the Key Input attribute.
*/
#[\Attribute(\Attribute::TARGET_CLASS)]
class
KeyInput
extends
Plugin
{
/**
* Contructs a KeyInput attribute.
*
* @param string $id
* The plugin ID of the key input.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup $label
* The human-readable name of the key input.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup $description
* The description of the key input.
*/
public
function
__construct
(
public
readonly
string
$id
,
public
readonly
TranslatableMarkup
$label
,
public
readonly
TranslatableMarkup
$description
,
)
{
}
}
Loading