TaxRateEditForm.php in Ubercart 8.4
File
uc_tax/src/Form/TaxRateEditForm.php
View source
<?php
namespace Drupal\uc_tax\Form;
use Drupal\Core\Form\FormStateInterface;
class TaxRateEditForm extends TaxRateFormBase {
public function buildForm(array $form, FormStateInterface $form_state) {
$rate = $this->entity;
$form['#title'] = $this
->t('Edit %rate', [
'%rate' => $rate
->label(),
]);
return parent::buildForm($form, $form_state);
}
public function actions(array $form, FormStateInterface $form_state) {
$actions = parent::actions($form, $form_state);
$actions['submit']['#value'] = $this
->t('Update tax rate');
return $actions;
}
}