ShipmentItemDataDefinition not defined

Created on 15 January 2024, 6 months ago

Problem/Motivation

Drupal\commerce_shipping\Plugin\DataTypeShipmentItem refers to a definition_class in its annotation of "\Drupal\commerce_shipping\TypedData\ShipmentItemDataDefinition". This class does not exist, which can cause issues in other modules that rely on the data definition being present for introspection.

Steps to reproduce

When using the graphql_core_schema module to introspective type data we run into an error as the type definition class is not defined.
Install and activate the graphql_core_schema module.
Install and activate the commerce_shipping module
Receive error:
Error: Class "\Drupal\commerce_shipping\TypedData\DataDefinition\ShipmentItemDataDefinition" not found in Drupal\Core\TypedData\TypedDataManager->createDataDefinition() (line 120 of /app/docroot/core/lib/Drupal/Core/TypedData/TypedDataManager.php).

Proposed resolution

Add the data definition.Patch to follow.

Remaining tasks

Review.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland tcrawford

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024