Example #1
0
 /**
  * Overrides views_handler::options_form().
  *
  * Provides link to shipment administration page.
  */
 public function buildOptionsForm(&$form, FormStateInterface $form_state)
 {
     parent::options_form($form, $form_state);
     $form['link_to_shipment'] = array('#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']));
 }