Currently the ::buildRow method invokes the deprecated ::getLabel method. We can invoke the label method directly from the entity. We can just take care of each instance.

  • \Drupal\commerce_order\Entity\LineItemTypeListBuilder
  • \Drupal\commerce_order\Entity\OrderTypeListBuilder
  • \Drupal\commerce_product\ProductVariationTypeListBuilder
  • \Drupal\commerce_product\ProductTypeListBuilder
  • \Drupal\commerce_store\StoreTypeListBuilder
  • \Drupal\commerce_price\CurrencyListBuilder

Comments

mglaman created an issue. See original summary.

harings_rob’s picture

Assigned: Unassigned » harings_rob
harings_rob’s picture

Status: Active » Needs review

I have changed the calls to ->label() directly on the entity.

PR: https://github.com/drupalcommerce/commerce/pull/324

  • bojanz committed c70283f on 8.x-2.x authored by harings_rob
    Issue #2663656 by mglaman, harings_rob: Remove used of deprecated ::...
bojanz’s picture

Status: Needs review » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

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