You are here

public function Quotes::retrieveQuotes in Ubercart 8.4

Form submission handler to retrieve quotes.

File

shipping/uc_quote/src/Plugin/Ubercart/OrderPane/Quotes.php, line 103

Class

Quotes
Get a shipping quote for the order from a quoting module.

Namespace

Drupal\uc_quote\Plugin\Ubercart\OrderPane

Code

public function retrieveQuotes($form, FormStateInterface $form_state) {
  $element = $form_state
    ->getTriggeringElement();
  $form_state
    ->set('quote_requested', $element['#value'] == $form['quotes']['quote_button']['#value']);
  $form_state
    ->setRebuild();
}