You are here

public static function OrderRenderer::createInstance in Commerce Core 8.2

File

modules/order/src/EntityPrint/OrderRenderer.php, line 58

Class

OrderRenderer
Provides a custom entity_print renderer for orders.

Namespace

Drupal\commerce_order\EntityPrint

Code

public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
  return new static($container
    ->get('renderer'), $container
    ->get('entity_print.asset_renderer'), $container
    ->get('entity_print.filename_generator'), $container
    ->get('event_dispatcher'), $container
    ->get('entity_type.manager'), $container
    ->get('commerce_order.order_total_summary'));
}