';
+ // The displayed text for the column header. Hidden to assistive technologies.
+ $visibleheader = html_writer::span(get_string('select'), '', ['aria-hidden' => 'true']);
+ // The actual accessible name for the column header which provides more context about the column's purpose to
+ // screen reader users.
+ $bulkactionsselection = html_writer::span(get_string('bulkactionsselection', 'assign'), 'visually-hidden');
+
+ // The select all checkbox.
+ $selectalllabel = html_writer::label(get_string('selectall'), 'selectall', false, ['class' => 'visually-hidden']);
+ $selectallcheckbox = html_writer::empty_tag(
+ 'input',
+ [
+ 'type' => 'checkbox',
+ 'id' => 'selectall',
+ 'name' => 'selectall',
+ ],
+ );
+ $headers[] = $visibleheader . $bulkactionsselection .
+ html_writer::div($selectalllabel . $selectallcheckbox, 'selectall');
}
if ($this->hasviewblind || !$this->assignment->is_blind_marking()) {
diff --git a/mod/assign/lang/en/assign.php b/mod/assign/lang/en/assign.php
index 3a1738666fb..a001ccc7402 100644
--- a/mod/assign/lang/en/assign.php
+++ b/mod/assign/lang/en/assign.php
@@ -150,6 +150,7 @@ $string['blindmarking'] = 'Anonymous submissions';
$string['blindmarkingenabledwarning'] = 'Anonymous submissions are enabled for this activity.';
$string['blindmarkingnogradewarning'] = 'Anonymous submissions are enabled for this activity. Grades will not be added to the gradebook until student identities are revealed via the "Actions" menu.';
$string['blindmarking_help'] = 'Anonymous submissions hide the identity of students from markers. Anonymous submission settings will be locked once a submission or grade has been made in relation to this assignment.';
+$string['bulkactionsselection'] = 'Bulk actions selection';
$string['cachedef_overrides'] = 'User and group override information';
$string['calendardue'] = '{$a} is due';
$string['calendarextension'] = '{$a} is due (extension)';