You are here

public function Links::defineOptions in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/field/Links.php \Drupal\views\Plugin\views\field\Links::defineOptions()
  2. 9 core/modules/views/src/Plugin/views/field/Links.php \Drupal\views\Plugin\views\field\Links::defineOptions()

File

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

Class

Links
An 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;
}