$adminConfig
$adminConfig : \Charcoal\Admin\Config
Store a reference to the admin configuration.
Action: Build a widget.
widget_type
(string) — The widget type, as an identifier for a \Charcoal\App\Template\WidgetInterface.widget_options
(array) — Data to set on the built widget.success
(boolean) — TRUE if the widget was built, FALSE in case of any error.widget_html
(string) — The widget's rendered view.widget_id
(string) — The widget's ID.200
— Successful; Widget built400
— Client error; Invalid request data500
— Server error; Widget could not be built$adminConfig : \Charcoal\Admin\Config
Store a reference to the admin configuration.
init(\Psr\Http\Message\RequestInterface $request) : boolean
Template's init method is called automatically from `charcoal-app`'s Template Route.
For admin templates, initializations is:
$_GET
\Psr\Http\Message\RequestInterface | $request | The request to initialize. |
addFeedback(string $level, mixed $message) : \Charcoal\Admin\Ui\FeedbackContainerTrait
Add feedback.
string | $level | The feedback level. |
mixed | $message | The feedback message. |
Chainable
clearFeedback() : \Charcoal\Admin\Ui\FeedbackContainerTrait
Remove all feedback from collection.
Chainable
run(\Psr\Http\Message\RequestInterface $request, \Psr\Http\Message\ResponseInterface $response) : \Psr\Http\Message\ResponseInterface
Execute the endpoint.
\Psr\Http\Message\RequestInterface | $request | A PSR-7 compatible Request instance. |
\Psr\Http\Message\ResponseInterface | $response | A PSR-7 compatible Response instance. |
setWidgetId(string $id) : \Charcoal\Admin\Action\Widget\LoadAction
Set the widget's ID.
string | $id | The widget ID. |
If the widget ID argument is not a string.
Chainable
setWidgetType(string $type) : \Charcoal\Admin\Action\Widget\LoadAction
Set the widget's type.
string | $type | The widget type. |
If the widget type argument is not a string.
Chainable
setWidgetHtml(string $html) : \Charcoal\Admin\Action\Widget\LoadAction
Set the widget's rendered view.
string | $html | The widget HTML. |
If the widget HTML is not a string.
Chainable
setModelFactory(\Charcoal\Factory\FactoryInterface $factory) : \Charcoal\Admin\AdminScript
\Charcoal\Factory\FactoryInterface | $factory | The factory used to create models. |
Chainable
setSiteName(string $name) : \Charcoal\Admin\AdminAction
Set the name of the project.
string | $name | Name of the project. |
Chainable