You are here

public function Store::buildOptionsForm in Commerce Core 8.2

Default options form that provides the label widget that all fields should have.

Overrides EntityField::buildOptionsForm

File

modules/store/src/Plugin/views/field/Store.php, line 33

Class

Store
Displays the store.

Namespace

Drupal\commerce_store\Plugin\views\field

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['hide_single_store'] = [
    '#type' => 'checkbox',
    '#title' => $this
      ->t("Hide if there's only one store."),
    '#default_value' => $this->options['hide_single_store'],
  ];
}