[COMPONENT][RightPanel] Sends request object in the AppendRightPanelBlock
event
This commit is contained in:
@@ -9,7 +9,7 @@ Example
|
||||
-------
|
||||
|
||||
```php
|
||||
public function onAppendRightPanelBlock(array $vars, array &$res): bool
|
||||
public function onAppendRightPanelBlock(array $vars, Request $request, array &$res): bool
|
||||
{
|
||||
if ($vars['path'] == 'attachment_show') {
|
||||
$related_notes = DB::dql('select n from attachment_to_note an ' .
|
||||
@@ -26,4 +26,4 @@ public function onAppendRightPanelBlock(array $vars, array &$res): bool
|
||||
```
|
||||
|
||||
Regarding using the Twig language, you can refer to
|
||||
[Twig Documentation](https://twig.symfony.com/doc/3.x/templates.html).
|
||||
[Twig Documentation](https://twig.symfony.com/doc/3.x/templates.html).
|
||||
|
Reference in New Issue
Block a user