class SharedController (View source)

The Shared data controller.

Methods

static Response
data()

Send form when there is no posted data in the request or save data if there is.

static Response
save(Automad $Automad, array $data)

Save shared data.

Details

static Response data()

Send form when there is no posted data in the request or save data if there is.

Return Value

Response the response object

static private Response save(Automad $Automad, array $data)

Save shared data.

Parameters

Automad $Automad
array $data

Return Value

Response the response object