Skip to content
Snippets Groups Projects
Commit f68cffb6 authored by András Czövek's avatar András Czövek Committed by Jonathan Sacksick
Browse files

Issue #3413020 by czigor: Using a translatable string as a category for field...

Issue #3413020 by czigor: Using a translatable string as a category for field is deprecated in Drupal 10.2.
parent 9892676f
No related branches found
No related tags found
7 merge requests!379Issue #3491248 Validation is breaking the amount number format decimal point,!375Issue #3413020 by czigor: Using a translatable string as a category for field...,!357Issue #2914933: Add service tags to order-related interfaces,!344Resolve #3107602 "Product attributes do not update visually when switching variations",!343Resolve #3107602 "Product attributes do not update visually when switching variations",!342Issue #3476581 by josephr5000: add OrderItemLabelEvent,!236Issue #3413020 by czigor: Using a translatable string as a category for field...
Pipeline #122625 passed with warnings
commerce:
label: 'Commerce'
description: 'Commerce related field types.'
weight: -40
libraries:
- commerce/field-ui
plugin:
label: 'Plugin'
description: 'Plugin configurations'
weight: -40
......@@ -38,3 +38,9 @@ local-actions:
css:
theme:
css/commerce.local-actions.css: {}
field-ui:
version: VERSION
css:
theme:
css/commerce.field_ui.css: {}
/**
* @file
* Commerce styling for the field UI.
*/
.field-icon-commerce {
background-image: url("../icons/000000/drupal-cart.svg")
}
......@@ -14,7 +14,7 @@ use Drupal\Core\TypedData\DataDefinition;
* id = "commerce_adjustment",
* label = @Translation("Adjustment"),
* description = @Translation("Stores adjustments to the parent entity's price."),
* category = @Translation("Commerce"),
* category = "commerce",
* list_class = "\Drupal\commerce_order\Plugin\Field\FieldType\AdjustmentItemList",
* no_ui = TRUE,
* default_widget = "commerce_adjustment_default",
......
......@@ -16,7 +16,7 @@ use Drupal\Core\TypedData\DataDefinition;
* id = "commerce_price",
* label = @Translation("Price"),
* description = @Translation("Stores a decimal number and a three letter currency code."),
* category = @Translation("Commerce"),
* category = "commerce",
* default_widget = "commerce_price_default",
* default_formatter = "commerce_price_default",
* )
......
......@@ -20,7 +20,7 @@ use Drupal\Core\TypedData\MapDataDefinition;
* id = "commerce_tax_number",
* label = @Translation("Tax number"),
* description = @Translation("Stores a tax number"),
* category = @Translation("Commerce"),
* category = "commerce",
* default_formatter = "commerce_tax_number_default",
* default_widget = "commerce_tax_number_default",
* cardinality = 1,
......
......@@ -14,7 +14,7 @@ use Drupal\Core\TypedData\MapDataDefinition;
* id = "commerce_plugin_item",
* label = @Translation("Plugin"),
* description = @Translation("Stores configuration for a plugin."),
* category = @Translation("Commerce"),
* category = "commerce",
* default_widget = "commerce_plugin_select",
* default_formatter = "commerce_plugin_item_default",
* deriver = "\Drupal\commerce\Plugin\Field\FieldType\PluginItemDeriver"
......
......@@ -61,7 +61,7 @@ class PluginItemDeriver extends DeriverBase implements ContainerDeriverInterface
$this->derivatives[$plugin_type] = [
'plugin_type' => $plugin_type,
'label' => $label,
'category' => $this->t('Plugin'),
'category' => 'plugin',
] + $base_plugin_definition;
}
......
......@@ -13,7 +13,7 @@ use Drupal\Core\TypedData\DataDefinition;
* id = "commerce_remote_id",
* label = @Translation("Remote ID"),
* description = @Translation("Stores remote IDs."),
* category = @Translation("Commerce"),
* category = "commerce",
* default_widget = "",
* default_formatter = "commerce_remote_id_default",
* list_class = "\Drupal\commerce\Plugin\Field\FieldType\RemoteIdFieldItemList",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment