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
Commits
c6d6099f
Commit
c6d6099f
authored
1 year ago
by
Kim Pepper
Committed by
quietone
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Address feedback
parent
b7511c37
No related branches found
No related tags found
1 merge request
!6874
Fixes #3420981 Convert FieldType plugin discovery to attributes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/lib/Drupal/Core/Field/Attribute/FieldType.php
+5
-9
5 additions, 9 deletions
core/lib/Drupal/Core/Field/Attribute/FieldType.php
with
5 additions
and
9 deletions
core/lib/Drupal/Core/Field/Attribute/FieldType.php
+
5
−
9
View file @
c6d6099f
...
...
@@ -23,10 +23,8 @@ class FieldType extends Plugin {
*
* @param string $id
* The plugin ID.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup
|null
$label
* @param \Drupal\Core\StringTranslation\TranslatableMarkup $label
* The human-readable name of the field type.
* @param string|null $module
* The name of the module providing the field type plugin.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup|array|null $description
* (optional) A short human-readable description for the field type.
* @param string $category
...
...
@@ -61,16 +59,14 @@ class FieldType extends Plugin {
* (optional) An array of column groups for the field type.
* @param array $serialized_property_names
* (optional) An array of property names that should be serialized.
* @param bool $unwrap_for_canonical_representation
* (optional) Whether the typed object wraps the canonical representation of
* the data.
* @param string|null $deriver
* (optional) The deriver class for the data type.
* @param string|null $module
* The name of the module providing the field type plugin.
*/
public
function
__construct
(
public
readonly
string
$id
,
public
readonly
?TranslatableMarkup
$label
=
NULL
,
public
readonly
?string
$module
=
NULL
,
public
readonly
TranslatableMarkup
$label
,
public
readonly
TranslatableMarkup
|
array
|
null
$description
=
NULL
,
public
readonly
string
$category
=
''
,
public
readonly
int
$weight
=
0
,
...
...
@@ -83,8 +79,8 @@ public function __construct(
public
readonly
array
$config_dependencies
=
[],
public
readonly
array
$column_groups
=
[],
public
readonly
array
$serialized_property_names
=
[],
public
readonly
bool
$unwrap_for_canonical_representation
=
TRUE
,
public
readonly
?string
$deriver
=
NULL
,
public
readonly
?string
$module
=
NULL
,
)
{
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment