|
|
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.
|
| |
◆ __construct()
| core\output\action_link::__construct |
( |
moodle_url | $url, |
|
|
| $text, |
|
|
?component_action | $action = null, |
|
|
?array | $attributes = null, |
|
|
?pix_icon | $icon = null ) |
Constructor.
- Parameters
-
| moodle_url | $url | |
| string | $text | HTML fragment |
| null | component_action | $action | |
| null | array | $attributes | associative array of html link attributes + disabled |
| null | pix_icon | $icon | optional pix_icon to render with the link text |
◆ add_action()
Add action to the link.
- Parameters
-
◆ add_class()
| core\output\action_link::add_class |
( |
| $class | ) |
|
Adds a CSS class to this action link object.
- Parameters
-
◆ export_for_template()
| core\output\action_link::export_for_template |
( |
renderer_base | $output | ) |
|
◆ get_icon_html()
| core\output\action_link::get_icon_html |
( |
| ) |
|
Return the rendered HTML for the icon.
Useful for rendering action links in a template.
- Return values
-
◆ has_class()
| core\output\action_link::has_class |
( |
| $class | ) |
|
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/action_link.php