|
array | $actions |
| List of actions attached to link.
|
|
array | $attributes |
| HTML attributes.
|
|
pix_icon | $icon |
| Optional pix icon to render with the link.
|
|
string | $text |
| Link text HTML fragment.
|
|
moodle_url | $url |
| Href url.
|
|
|
static int | $instance = 1 |
| The number of instances of this action menu link (and its subclasses).
|
|
◆ __construct()
core\output\local\action_menu\subpanel::__construct |
( |
| $text, |
|
|
renderable | $subpanel, |
|
|
array | $attributes = null, |
|
|
pix_icon | $icon = null ) |
Constructor.
- Parameters
-
string | $text | the text to display |
renderable | $subpanel | the subpanel content |
array | null | $attributes | an optional array of attributes |
pix_icon | null | $icon | an optional icon |
◆ add_action()
Add action to the link.
- Parameters
-
◆ add_class()
action_link::add_class |
( |
| $class | ) |
|
|
inherited |
Adds a CSS class to this action link object.
- Parameters
-
◆ export_for_template() [1/2]
Export for template.
- Parameters
-
- Return values
-
Reimplemented in action_menu_link.
◆ export_for_template() [2/2]
core\output\local\action_menu\subpanel::export_for_template |
( |
\renderer_base | $output | ) |
|
Export this object for template rendering.
- Parameters
-
- Return values
-
◆ get_icon_html()
action_link::get_icon_html |
( |
| ) |
|
|
inherited |
Return the rendered HTML for the icon.
Useful for rendering action links in a template.
- Return values
-
◆ has_class()
action_link::has_class |
( |
| $class | ) |
|
|
inherited |
Returns true if the specified class has been added to this link.
- Parameters
-
- Return values
-
The documentation for this class was generated from the following file:
- lib/classes/output/local/action_menu/subpanel.php