function Links::defineOptions

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/field/Links.php \Drupal\views\Plugin\views\field\Links::defineOptions()
  2. 10 core/modules/views/src/Plugin/views/field/Links.php \Drupal\views\Plugin\views\field\Links::defineOptions()
  3. 11.x core/modules/views/src/Plugin/views/field/Links.php \Drupal\views\Plugin\views\field\Links::defineOptions()

Overrides FieldPluginBase::defineOptions

File

core/modules/views/src/Plugin/views/field/Links.php, line 26

Class

Links
A abstract handler which provides a collection of links.

Namespace

Drupal\views\Plugin\views\field

Code

public function defineOptions() {
    $options = parent::defineOptions();
    $options['fields'] = [
        'default' => [],
    ];
    $options['destination'] = [
        'default' => TRUE,
    ];
    return $options;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.