You are here

public function ProjectLinkSource::buildOptionsForm in http:BL 8

Provide link to the page being visited.

Overrides Url::buildOptionsForm

File

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

Class

ProjectLinkSource
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('Links to original Project Honey Pot profile.'),
    '#description' => $this
      ->t('This link is active only when the evaluated host is still originally sourced and has not been admin managed.'),
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['display_profile_link']),
  );
}