RestResourceConfigInterface::getFormats

public RestResourceConfigInterface::getFormats($method)

Retrieves a list of supported response formats.

Parameters

string $method: The request method e.g GET or POST.

Return value

string[] A list of supported format IDs.

File

core/modules/rest/src/RestResourceConfigInterface.php, line 59

Class

RestResourceConfigInterface
Defines a configuration entity to store enabled REST resources.

Namespace

Drupal\rest

Code

1
public function getFormats($method);
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.