You are here

public function StatusEnhanced::buildOptionsForm in http:BL 8

Provide link to the page being visited.

Overrides FieldPluginBase::buildOptionsForm

File

src/Plugin/views/field/StatusEnhanced.php, line 32

Class

StatusEnhanced
Field handler to display human-ized definitions of the integer status values.

Namespace

Drupal\httpbl\Plugin\views\field

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  parent::buildOptionsForm($form, $form_state);

  //unset ($form['display_as_link']);
  $form['status_enhanced'] = array(
    '#title' => $this
      ->t('Status enhanced'),
    '#description' => $this
      ->t('Shows the definitions of the integer status values, and when a blacklisted host is also banned.'),
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['status_enhanced']),
  );
}