You are here

public function SimpleStockLevelWidget::validateBasic in Commerce Stock 8

Validates a basic stock field widget form.

File

modules/field/src/Plugin/Field/FieldWidget/SimpleStockLevelWidget.php, line 276

Class

SimpleStockLevelWidget
Plugin implementation of the 'commerce_stock_level' widget.

Namespace

Drupal\commerce_stock_field\Plugin\Field\FieldWidget

Code

public function validateBasic($element, FormStateInterface $form_state) {

  // @to do.
  return TRUE;
}