You are here

protected function JsonFeed::defineOptions in JSON Feed 8

Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase:defineOptions().

Overrides Feed::defineOptions

File

src/Plugin/views/display/JsonFeed.php, line 84

Class

JsonFeed
The plugin that handles a JSON feed.

Namespace

Drupal\json_feed\Plugin\views\display

Code

protected function defineOptions() {
  $options = parent::defineOptions();

  // Set the default style plugins.
  $options['style']['contains']['type']['default'] = 'json_feed_serializer';
  $options['row']['contains']['type']['default'] = 'json_feed_fields';
  $options['defaults']['default']['style'] = FALSE;
  $options['defaults']['default']['row'] = FALSE;

  // Remove unusable form settings.
  unset($options['exposed_form']);
  unset($options['exposed_block']);
  unset($options['css_class']);
  return $options;
}