Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
core_contentbank\output\viewcontent Class Reference
Inheritance diagram for core_contentbank\output\viewcontent:
renderable templatable

Public Member Functions

 __construct (contenttype $contenttype, content $content)
 Construct this renderable.
 
 export_for_template (renderer_base $output)
 Export this data so it can be used as the context for a mustache template.
 

Protected Member Functions

 get_edit_actions_dropdown ()
 Get the content of the "More" dropdown in the tertiary navigation.
 

Constructor & Destructor Documentation

◆ __construct()

core_contentbank\output\viewcontent::__construct ( contenttype $contenttype,
content $content )

Construct this renderable.

Parameters
contenttype$contenttypeContent bank content type.
content$contentRecord of the contentbank_content table.

Member Function Documentation

◆ export_for_template()

core_contentbank\output\viewcontent::export_for_template ( renderer_base $output)

Export this data so it can be used as the context for a mustache template.

Parameters
renderer_base$output
Return values
stdClass

Implements templatable.

◆ get_edit_actions_dropdown()

core_contentbank\output\viewcontent::get_edit_actions_dropdown ( )
protected

Get the content of the "More" dropdown in the tertiary navigation.

Return values
array|nullThe options to be displayed in a dropdown in the tertiary navigation
Exceptions
moodle_exception

The documentation for this class was generated from the following file: