public function SimpleStockLevelWidget::submitAll in Commerce Stock 8
Submits the form.
File
- modules/
field/ src/ Plugin/ Field/ FieldWidget/ SimpleStockLevelWidget.php, line 284
Class
- SimpleStockLevelWidget
- Plugin implementation of the 'commerce_stock_level' widget.
Namespace
Drupal\commerce_stock_field\Plugin\Field\FieldWidgetCode
public function submitAll(array &$form, FormStateInterface $form_state) {
$this
->messenger()
->addMessage($this
->t('Updated stock!'));
}