Skip to content

Commit 7722001

Browse files
committed
Properly nest CustomButtonEvent methods under class
1 parent 08dee9a commit 7722001

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

docs/components/ui.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,26 @@ Mautic dispatches the Event ``\Mautic\CoreBundle\CoreEvents::VIEW_INJECT_CUSTOM_
1212

1313
.. php:class:: Mautic\CoreBundle\Event\CustomButtonEvent
1414
15-
.. php:method:: public function getLocation()
15+
.. php:method:: public function getLocation()
1616
17-
:return: Requested location for the Button.
17+
:return: Requested location for the Button.
1818

19-
.. php:method:: public function getButtons()
19+
.. php:method:: public function getButtons()
2020
21-
:return: Array of registered Buttons.
22-
:returntype: array
21+
:return: Array of registered Buttons.
22+
:returntype: array
2323

24-
.. php:method:: public function addButtons(array $buttons, $location = null, $route = null)
24+
.. php:method:: public function addButtons(array $buttons, $location = null, $route = null)
2525
26-
:param array[] $buttons: Array of buttons.
27-
:param string $location: Location of the Button to be placed.
28-
:param string $route: Route.
26+
:param array[] $buttons: Array of buttons.
27+
:param string $location: Location of the Button to be placed.
28+
:param string $route: Route.
2929

30-
.. php:method:: public function addButton(array $button, $location = null, $route = null)
30+
.. php:method:: public function addButton(array $button, $location = null, $route = null)
3131
32-
:param array[] $button: :ref:`Details for button<components/ui:Button Array Format>`.
33-
:param string $location: Location of the Button to be placed.
34-
:param string $route: Route.
32+
:param array[] $button: :ref:`Details for button<components/ui:Button Array Format>`.
33+
:param string $location: Location of the Button to be placed.
34+
:param string $route: Route.
3535

3636
A Plugin can inject the Buttons into five places in Mautic's UI.
3737

0 commit comments

Comments
 (0)