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.
array An array of formats.
public function getFormats() {
if (!empty($this->options['formats'])) {
return $this->options['formats'];
}
return $this->formats;
}