You are here

public function ProductVariationFieldRendererInterface::renderFields in Commerce Core 8.2

Renders all renderable variation fields.

Parameters

\Drupal\commerce_product\Entity\ProductVariationInterface $variation: The product variation.

string $view_mode: The view mode.

Return value

array Array of render arrays, keyed by field name.

1 method overrides ProductVariationFieldRendererInterface::renderFields()
ProductVariationFieldRenderer::renderFields in modules/product/src/ProductVariationFieldRenderer.php
Renders all renderable variation fields.

File

modules/product/src/ProductVariationFieldRendererInterface.php, line 28

Class

ProductVariationFieldRendererInterface
Renders variation fields.

Namespace

Drupal\commerce_product

Code

public function renderFields(ProductVariationInterface $variation, $view_mode = 'default');