You are here

public function ViewsJsonQuery::defineOptions in Views Json Source 8

Same name and namespace in other branches
  1. 1.x src/Plugin/views/query/ViewsJsonQuery.php \Drupal\views_json_source\Plugin\views\query\ViewsJsonQuery::defineOptions()

Option definition.

Overrides PluginBase::defineOptions

File

src/Plugin/views/query/ViewsJsonQuery.php, line 463

Class

ViewsJsonQuery
Base query handler for views_json_source.

Namespace

Drupal\views_json_source\Plugin\views\query

Code

public function defineOptions() {
  $options = parent::defineOptions();
  $options['json_file'] = [
    'default' => '',
  ];
  $options['row_apath'] = [
    'default' => '',
  ];
  $options['headers'] = [
    'default' => '',
  ];
  $options['single_payload'] = [
    'default' => '',
  ];
  $options['show_errors'] = [
    'default' => TRUE,
  ];
  return $options;
}