Why custom condition is not containing parent entity?

More info at:

https://drupal.stackexchange.com/questions/305905/why-custom-condition-i...

Comments

codium created an issue. See original summary.

jsacksick’s picture

Status: Active » Fixed

If you want your custom condition you get the parent entity, you need to implement the ParentEntityAwareInterface and use the ParentEntityAwareTrait.

See OrderItemQuantity for an example.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.