Commit e4e5de2a authored by Oliver Bartsch's avatar Oliver Bartsch Committed by Daniel Goerz
Browse files

[DOCS] Add missing key for widget registration

Using the example registration of a custom widget would lead
to an ArgumentCountError respectively an RuntimeException as
the `arguments` key is missing. Therefore the key is added to
the configuration examples.

Resolves: #90501
Releases: master
Change-Id: Ib6666169fda610dd6393f4869f476d0a29edd56e

Tested-by: default avatarTYPO3com <>
Tested-by: Björn Jacob's avatarBjörn Jacob <>
Tested-by: Daniel Goerz's avatarDaniel Goerz <>
Reviewed-by: Björn Jacob's avatarBjörn Jacob <>
Reviewed-by: Daniel Goerz's avatarDaniel Goerz <>
parent 7ed0d184
......@@ -60,6 +60,7 @@ Tag you widget in :file:`EXT:your_extension/Configuration/Services.yaml`:
# Variant 1, widget identifier as attribute
arguments: ['widget-identifier-1']
- name: dashboard.widget
identifier: widget-identifier-1
......@@ -69,6 +70,7 @@ Tag you widget in :file:`EXT:your_extension/Configuration/Services.yaml`:
# to share the same class
class: Vendor\Extension\Widgets\MySecondWidget
arguments: ['widget-identifier-1']
- name: dashboard.widget
# If ommited, the identifier would be the service name, thus 'widget.identifier'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment