Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Serializer.php

function Serializer::defineOptions

Overrides StylePluginBase::defineOptions

File

core/modules/rest/src/Plugin/views/style/Serializer.php, line 87

Class

Serializer
The style plugin for serialized output formats.

Namespace

Drupal\rest\Plugin\views\style

Code

protected function defineOptions() {
    $options = parent::defineOptions();
    $options['formats'] = [
        'default' => [],
    ];
    return $options;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal