You are here

public function TitleLink::buildOptionsForm in Views (for Drupal 7) 8.3

Provide link to the page being visited.

Overrides FieldPluginBase::buildOptionsForm

File

lib/Views/aggregator/Plugin/views/field/TitleLink.php, line 47
Definition of Views\aggregator\Plugin\views\field\TitleLink.

Class

TitleLink
Field handler that turns an item's title into a clickable link to the original source article.

Namespace

Views\aggregator\Plugin\views\field

Code

public function buildOptionsForm(&$form, &$form_state) {
  $form['display_as_link'] = array(
    '#title' => t('Display as link'),
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['display_as_link']),
  );
  parent::buildOptionsForm($form, $form_state);
}