function Serializer::getFormats
Same name and namespace in other branches
- 11.x core/modules/rest/src/Plugin/views/style/Serializer.php \Drupal\rest\Plugin\views\style\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.
File
-
core/
modules/ rest/ src/ Plugin/ views/ style/ Serializer.php, line 154
Class
- Serializer
- The style plugin for serialized output formats.
Namespace
Drupal\rest\Plugin\views\styleCode
public function getFormats() {
return $this->options['formats'];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.