Skip to content

Commit

Permalink
DOCS Documention form field action controller method
Browse files Browse the repository at this point in the history
  • Loading branch information
ScopeyNZ committed Oct 28, 2018
1 parent 4b00e59 commit a3a5e62
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Controllers/ElementalAreaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,14 @@ public function apiSaveForm(HTTPRequest $request)
return HTTPResponse::create($body)->addHeader('Content-Type', 'application/json');
}

/**
* Provides action control for form fields that are request handlers when they're used in an in-line edit form.
*
* Eg. UploadField
*
* @param HTTPRequest $request
* @return array|HTTPResponse|\SilverStripe\Control\RequestHandler|string
*/
public function formAction(HTTPRequest $request)
{
$formName = $request->param('FormName');
Expand Down

0 comments on commit a3a5e62

Please sign in to comment.