function Serializer::getFormatOptions
Same name in other branches
- 9 core/modules/rest/src/Plugin/views/style/Serializer.php \Drupal\rest\Plugin\views\style\Serializer::getFormatOptions()
- 8.9.x core/modules/rest/src/Plugin/views/style/Serializer.php \Drupal\rest\Plugin\views\style\Serializer::getFormatOptions()
- 10 core/modules/rest/src/Plugin/views/style/Serializer.php \Drupal\rest\Plugin\views\style\Serializer::getFormatOptions()
Returns an array of format options.
Return value
string[] An array of format options. Both key and value are the same.
1 call to Serializer::getFormatOptions()
- Serializer::buildOptionsForm in core/
modules/ rest/ src/ Plugin/ views/ style/ Serializer.php
File
-
core/
modules/ rest/ src/ Plugin/ views/ style/ Serializer.php, line 201
Class
- Serializer
- The style plugin for serialized output formats.
Namespace
Drupal\rest\Plugin\views\styleCode
protected function getFormatOptions() {
$formats = array_keys($this->formatProviders);
return array_combine($formats, $formats);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.