Definition at line 16 of file RecipientDetails.php.
Paperyard\Controllers\Rule\RecipientDetails::__construct |
( |
Twig |
$view, |
|
|
LoggerInterface |
$logger, |
|
|
Messages |
$flash |
|
) |
| |
RecipientDetails constructor.
- Parameters
-
Twig | $view | |
LoggerInterface | $logger | |
Messages | $flash | |
Definition at line 27 of file RecipientDetails.php.
registerPlugin($name, $type=PluginType::NORMAL)
Paperyard\Controllers\Rule\RecipientDetails::__invoke |
( |
Request |
$request, |
|
|
Response |
$response, |
|
|
|
$args |
|
) |
| |
- Parameters
-
Request | $request | |
Response | $response | |
| $args | |
- Returns
- Response|static
Definition at line 42 of file RecipientDetails.php.
45 $this->rule = \Paperyard\Models\Rule\Recipient::find((
int)$request->getAttribute(
'ruleId'));
48 if ($this->rule === null) {
49 $this->flash->addMessage(
'error', _(
'Rule not found.'));
50 return $response->withRedirect(
'/rules/recipients');
54 $this->view->render($response,
'rule/recipient_details.twig', $this->
render());
Paperyard\Controllers\Rule\RecipientDetails::render |
( |
| ) |
|
render
- Returns
- array data to render the view
Definition at line 62 of file RecipientDetails.php.
65 'plugins' => parent::getPlugins(),
66 'rule' => $this->rule,
67 'languageFlag' => parent::getLanguageFlag()
Paperyard\Controllers\Rule\RecipientDetails::$rule |
|
private |
The documentation for this class was generated from the following file: