ToolbarButtonText
class ToolbarButtonText extends AbstractExtension
Twig extension to provide the xhtml code for requested button using toolbar_button_text(path('ROUTE', { 'VARIABLE': object.PROPERTY }), 'BUTTON_NAME', 'SIZE[lg|md|sm|xs](default md)', 'ICON_DISPLAY[true|false](default true)', 'LOCATION[right|bottom|left|top]')
Properties
private ToolbarServiceInterface | $toolbarService | Stores the toolbarService |
Methods
getFunctions()
No description
string
button(Environment $environment, $link, $button, $size = null, $iconDisplay = true, $location = 'right', $label = null, $userStyle = null, $color = null)
Returns the xhtml code for the button with text
Details
at line 30
__construct(ToolbarServiceInterface $toolbarService)
at line 35
getFunctions()
at line 53
string
button(Environment $environment, $link, $button, $size = null, $iconDisplay = true, $location = 'right', $label = null, $userStyle = null, $color = null)
Returns the xhtml code for the button with text