Skip to content

Commit

Permalink
Document controller settings (closes #9)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkphl committed Jun 2, 2018
1 parent c552973 commit c1b1d0c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ The key / value pairs inside the JSON file will be used as input for the `setPar
#### Extbase plugin component
To configure an Extbase plugin component, use the `setExtbaseConfiguration()` method to specify the plugin name, the controller class name and the controller action to be called. The output will be rendered using the Fluid template associated with the controller action. You can specify action arguments via `setControllerActionArgument()`.
To configure an Extbase plugin component, use the `setExtbaseConfiguration()` method to specify the plugin name, the controller class name and the controller action to be called. The output will be rendered using the Fluid template associated with the controller action. You can specify action arguments via `setControllerActionArgument()` and simulate controller controller settings via `setControllerSettings()`.
```php
<?php
Expand All @@ -176,6 +176,9 @@ class ExampleExtbaseComponent extends ExtbaseComponent
{
$this->setExtbaseConfiguration('PluginName', MyCustomController::class, 'action');
$this->setControllerActionArgument('param', [1, 2, 3]);

$overrideExistingSettings = true;
$this->setControllerSettings(['category' => 1], $overrideExistingSettings);
}
}
```
Expand Down

0 comments on commit c1b1d0c

Please sign in to comment.