A widget for the sidebar.
- Author
- Jan-Hendrik Willms tleil.nosp@m.ax+s.nosp@m.tudip.nosp@m.@gma.nosp@m.il.co.nosp@m.m GPL 2 or later
- Since
- 3.1
- See Also
- Sidebar
Returns the ID of this widget, if it is set.
- Returns
- string The ID of the widget or an empty string, if it is not set.
Returns the title of the widget
- Returns
- string The title of the widget of false if no title has been set
removeAdditionalAttribute |
( |
string |
$key | ) |
|
Removes the title of the widget.
render |
( |
|
$variables = [] | ) |
|
Renders the widget. The widget will only be rendered if it contains at least one element.
- Returns
- string The THML code of the rendered sidebar widget
setAdditionalAttribute |
( |
string |
$key, |
|
|
|
$value |
|
) |
| |
setAdditionalAttributes |
( |
array |
$attributes | ) |
|
Sets the ID of the HTML element that represents the widget.
- Parameters
-
string | $id | The element-ID to be used for the widget. |
Sets the title of the widget.
- Parameters
-
string | $title | The title of the widget |
$additional_attributes = [] |
|
protected |
The documentation for this class was generated from the following file: