public function ProductAttributeFieldManagerInterface::getFieldDefinitions in Commerce Core 8.2
Gets the attribute field definitions.
The field definitions are not ordered. Use the field map when the field order is important.
Parameters
string $variation_type_id: The product variation type ID.
Return value
\Drupal\Core\Field\FieldDefinitionInterface[] The attribute field definitions, keyed by field name.
1 method overrides ProductAttributeFieldManagerInterface::getFieldDefinitions()
- ProductAttributeFieldManager::getFieldDefinitions in modules/
product/ src/ ProductAttributeFieldManager.php - Gets the attribute field definitions.
File
- modules/
product/ src/ ProductAttributeFieldManagerInterface.php, line 27
Class
- ProductAttributeFieldManagerInterface
- Manages attribute fields.
Namespace
Drupal\commerce_productCode
public function getFieldDefinitions($variation_type_id);