You are here

public function VariationFieldBlock::__construct in Commerce Core 8.2

Constructs a new VariationFieldBlock object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin ID for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.

\Drupal\Core\Field\FormatterPluginManager $formatter_manager: The formatter manager.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Psr\Log\LoggerInterface $logger: The logger.

\Drupal\commerce_product\ProductVariationFieldRendererInterface $product_variation_field_render: The variation field renderer.

Overrides FieldBlock::__construct

File

modules/product/src/Plugin/Block/VariationFieldBlock.php, line 50

Class

VariationFieldBlock
Variation field block.

Namespace

Drupal\commerce_product\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityFieldManagerInterface $entity_field_manager, FormatterPluginManager $formatter_manager, ModuleHandlerInterface $module_handler, LoggerInterface $logger, ProductVariationFieldRendererInterface $product_variation_field_render) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_field_manager, $formatter_manager, $module_handler, $logger);
  $this->productVariationFieldRenderer = $product_variation_field_render;
}