You are here

public function CurrentUserCartIds::buildOptionsForm in Commerce Core 8.2

Provide the default form for setting options.

Overrides ArgumentDefaultPluginBase::buildOptionsForm

File

modules/cart/src/Plugin/views/argument_default/CurrentUserCartIds.php, line 40

Class

CurrentUserCartIds
Default argument plugin for the current user's carts.

Namespace

Drupal\commerce_cart\Plugin\views\argument_default

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['argument'] = [
    '#markup' => '<div class="description">' . $this
      ->t("Provides the ID of the current user's first non-empty cart for the current store by default.") . '<br />' . $this
      ->t("Check <em>Allow multiple values</em> under <em>More</em> to provide all of the matching cart IDs for the current store.") . '</div>',
  ];
  return $form;
}