From c6d6099fd891b472f57fbbb22c697b873156e2b4 Mon Sep 17 00:00:00 2001 From: Kim Pepper <kim@previousnext.com.au> Date: Tue, 23 Apr 2024 09:32:02 +1000 Subject: [PATCH] Address feedback --- core/lib/Drupal/Core/Field/Attribute/FieldType.php | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/core/lib/Drupal/Core/Field/Attribute/FieldType.php b/core/lib/Drupal/Core/Field/Attribute/FieldType.php index 07cd2db6fa70..2a2196f51ef5 100644 --- a/core/lib/Drupal/Core/Field/Attribute/FieldType.php +++ b/core/lib/Drupal/Core/Field/Attribute/FieldType.php @@ -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, ) { } -- GitLab