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

Breadcrumb

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

function Serializer::getFormats

Gets a list of all available formats that can be requested.

This will return the configured formats, or all formats if none have been selected.

Return value

array An array of formats.

1 call to Serializer::getFormats()
Serializer::calculateDependencies in core/modules/rest/src/Plugin/views/style/Serializer.php
Calculates dependencies for the configured plugin.

File

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

Class

Serializer
The style plugin for serialized output formats.

Namespace

Drupal\rest\Plugin\views\style

Code

public function getFormats() {
    return $this->options['formats'];
}

API Navigation

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