You are here

public function FieldItemNormalizer::__construct in Commerce Cart API 8

Constructs a new FieldItemNormalizer object.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

File

src/Normalizer/FieldItemNormalizer.php, line 32

Class

FieldItemNormalizer
Field item normalizer which flattens output.

Namespace

Drupal\commerce_cart_api\Normalizer

Code

public function __construct(RouteMatchInterface $route_match) {
  $this->routeMatch = $route_match;
}