MDL-70196 mod_assign: Allow the last navbar item to have a link.

- Part of: MDL-69588
This updates a method to allow the last item in the breadcrumb
navbar to have a URL.
This commit is contained in:
Adrian Greeve
2021-08-23 17:46:38 +08:00
committed by Mathew May
parent c3871a9174
commit c8422f4576
2 changed files with 11 additions and 6 deletions
+5 -1
View File
@@ -671,6 +671,8 @@ class assign_header implements renderable {
public $preface = '';
/** @var string $postfix optional postfix (text to show after the intro) */
public $postfix = '';
/** @var moodle_url $subpageurl link for the subpage */
public $subpageurl = null;
/**
* Constructor
@@ -688,7 +690,8 @@ class assign_header implements renderable {
$coursemoduleid,
$subpage='',
$preface='',
$postfix='') {
$postfix='',
moodle_url $subpageurl = null) {
$this->assign = $assign;
$this->context = $context;
$this->showintro = $showintro;
@@ -696,6 +699,7 @@ class assign_header implements renderable {
$this->subpage = $subpage;
$this->preface = $preface;
$this->postfix = $postfix;
$this->subpageurl = $subpageurl;
}
}