You are here

public function ProductAttributeFieldManagerInterface::createField in Commerce Core 8.2

Creates an attribute field for the given attribute.

Parameters

\Drupal\commerce_product\Entity\ProductAttributeInterface $attribute: The product attribute.

string $variation_type_id: The product variation type ID.

1 method overrides ProductAttributeFieldManagerInterface::createField()
ProductAttributeFieldManager::createField in modules/product/src/ProductAttributeFieldManager.php
Creates an attribute field for the given attribute.

File

modules/product/src/ProductAttributeFieldManagerInterface.php, line 60

Class

ProductAttributeFieldManagerInterface
Manages attribute fields.

Namespace

Drupal\commerce_product

Code

public function createField(ProductAttributeInterface $attribute, $variation_type_id);