Commit b2e37baf authored by bojanz's avatar bojanz

Add missing docblock to commerce_store_field_widget_form_alter().

parent 0aac2f74
...@@ -19,6 +19,9 @@ function commerce_store_available_countries() { ...@@ -19,6 +19,9 @@ function commerce_store_available_countries() {
return \Drupal::service('address.country_repository')->getList(); return \Drupal::service('address.country_repository')->getList();
} }
/**
* Implements hook_field_widget_form_alter().
*/
function commerce_store_field_widget_form_alter(&$element, FormStateInterface $form_state, $context) { function commerce_store_field_widget_form_alter(&$element, FormStateInterface $form_state, $context) {
$field_definition = $context['items']->getFieldDefinition(); $field_definition = $context['items']->getFieldDefinition();
$field_name = $field_definition->getName(); $field_name = $field_definition->getName();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment