public function ShipmentId::buildOptionsForm in Ubercart 8.4
Overrides views_handler::options_form().
Provides link to shipment administration page.
Overrides FieldPluginBase::buildOptionsForm
File
- shipping/
uc_fulfillment/ src/ Plugin/ views/ field/ ShipmentId.php, line 45
Class
- ShipmentId
- Field handler: simple renderer that links to the shipment page.
Namespace
Drupal\uc_fulfillment\Plugin\views\fieldCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
$form['link_to_shipment'] = [
'#title' => t('Link this field to the shipment page'),
'#description' => t('This will override any other link you have set.'),
'#type' => 'checkbox',
'#default_value' => !empty($this->options['link_to_shipment']),
];
}