Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
typed_data
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
typed_data
Merge requests
!21
Issue
#3457976
: [10.3] Convert DataFilter plugins and discovery to attributes
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3457976
: [10.3] Convert DataFilter plugins and discovery to attributes
issue/typed_data-3457976:3457976-10.3-convert-datafilter
into
2.1.x
Overview
0
Commits
3
Pipelines
6
Changes
12
Merged
Tim Rohaly
requested to merge
issue/typed_data-3457976:3457976-10.3-convert-datafilter
into
2.1.x
11 months ago
Overview
0
Commits
3
Pipelines
6
Changes
12
Expand
Closes
#3457976
0
0
Merge request reports
Compare
2.1.x
version 5
80dacab9
11 months ago
version 4
b1a8b693
11 months ago
version 3
057b25b3
11 months ago
version 2
a73847a3
11 months ago
version 1
fc65e32c
11 months ago
2.1.x (base)
and
latest version
latest version
80dacab9
3 commits,
11 months ago
version 5
80dacab9
3 commits,
11 months ago
version 4
b1a8b693
2 commits,
11 months ago
version 3
057b25b3
2 commits,
11 months ago
version 2
a73847a3
2 commits,
11 months ago
version 1
fc65e32c
1 commit,
11 months ago
12 files
+
98
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
12
Search (e.g. *.vue) (Ctrl+P)
src/Attribute/DataFilter.php
0 → 100644
+
35
−
0
Options
<?php
declare
(
strict_types
=
1
);
namespace
Drupal\typed_data\Attribute
;
use
Drupal\Component\Plugin\Attribute\Plugin
;
use
Drupal\Core\StringTranslation\TranslatableMarkup
;
/**
* PHP Attribute class for typed data filter plugins.
*/
#[\Attribute(\Attribute::TARGET_CLASS)]
class
DataFilter
extends
Plugin
{
/**
* Constructs a typed data filter attribute object.
*
* @param string $id
* The plugin ID. The machine-name of the data filter.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup|null $label
* (optional) The human-readable name of the data filter.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup|null $description
* (optional) A short description of the data filter.
* @param class-string|null $deriver
* (optional) The deriver class.
*/
public
function
__construct
(
public
readonly
string
$id
,
public
readonly
?TranslatableMarkup
$label
=
NULL
,
public
readonly
?TranslatableMarkup
$description
=
NULL
,
public
readonly
?string
$deriver
=
NULL
,
)
{}
}
Loading