Commit 86f111ef authored by catch's avatar catch
Browse files

Issue #3277148 by rpayanm, andregp, joachim, Farnoosh, Athrylith, Jingting:...

Issue #3277148 by rpayanm, andregp, joachim, Farnoosh, Athrylith, Jingting: ResourceResponse should document that the route it is used with must define the _format requirement

(cherry picked from commit 58a50468)
parent 163df489
......@@ -14,6 +14,8 @@
* string or an object with a __toString() method, which is not a requirement
* for data used here.
*
* Routes that return this response must specify the '_format' requirement.
*
* @see \Drupal\rest\ModifiedResourceResponse
*/
class ResourceResponse extends Response implements CacheableResponseInterface, ResourceResponseInterface {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment