Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
|
Interface to indicate that a question bank column can go in the action menu. More...
Public Member Functions | |
get_action_menu_link (\stdClass $question) | |
Return the appropriate action menu link, or null if it does not apply to this question. | |
Interface to indicate that a question bank column can go in the action menu.
If a question bank column implements this interface, and if the {
Probably most columns that want to implement this will be subclasses of {
If your column is a simple action, you can probably save duplicated code by using the base class action_column_menuable as an easy way to implement both action_column_base and this interface.
core_question\local\bank\menuable_action::get_action_menu_link | ( | \stdClass | $question | ) |
Return the appropriate action menu link, or null if it does not apply to this question.
stdClass | $question | data about the question being displayed in this row. |
action_menu_link|null | the action, if applicable to this question. |
Implemented in core_question\local\bank\menu_action_column_base, and qbank_tagquestion\tags_action_column.