mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-67547 dataformat: allow plugins to declare support for HTML.
This commit is contained in:
parent
a09eb2697f
commit
118a109499
6 changed files with 62 additions and 10 deletions
|
@ -2012,7 +2012,7 @@ class table_default_export_format_parent {
|
|||
*/
|
||||
class table_dataformat_export_format extends table_default_export_format_parent {
|
||||
|
||||
/** @var $dataformat */
|
||||
/** @var \core\dataformat\base $dataformat */
|
||||
protected $dataformat;
|
||||
|
||||
/** @var $rownum */
|
||||
|
@ -2047,6 +2047,15 @@ class table_dataformat_export_format extends table_default_export_format_parent
|
|||
\core\session\manager::write_close();
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether the current dataformat supports export of HTML
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function supports_html(): bool {
|
||||
return $this->dataformat->supports_html();
|
||||
}
|
||||
|
||||
/**
|
||||
* Start document
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue