You are here

public function ProjectLinkHost::buildOptionsForm in http:BL 8

Provide link to the page being visited.

Overrides Url::buildOptionsForm

File

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

Class

ProjectLinkHost
Field handler to present a project link for a host entity.

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['display_profile_link'] = array(
    '#title' => $this
      ->t('Display a link to the host\'s IP profile @ Project Honey Pot'),
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['display_profile_link']),
  );
}