Skip to content

Commit

Permalink
FEATURE: allow passing of additional data from Fusion to plugin's tem…
Browse files Browse the repository at this point in the history
…plate
  • Loading branch information
dimaip authored Mar 2, 2017
1 parent ae5f078 commit bdf7c1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/Psmb/Newsletter/Controller/SubscriptionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ class SubscriptionController extends ActionController
*/
public function indexAction()
{
$additionalData = $this->request->getInternalArgument('__additionalData');
$this->view->assign('additionalData', $additionalData);
$this->view->assign('subscriptions', $this->subscriptions);
$this->view->assign('currentLocale', $this->i18nService->getConfiguration()->getCurrentLocale());
}
Expand Down
1 change: 1 addition & 0 deletions Resources/Private/Fusion/Root.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ prototype(Psmb.Newsletter:SubscriptionPlugin) < prototype(Neos.Neos:Plugin) {
package = 'Psmb.Newsletter'
controller = 'Subscription'
argumentNamespace = 'newsletter'
additionalData = Neos.Fusion:RawArray
}

prototype(Neos.Fusion:GlobalCacheIdentifiers) {
Expand Down

0 comments on commit bdf7c1c

Please sign in to comment.