MDL-78204 availability: Remove 'showmore' from availability_info

- Remove 'showmore' logic from the base availability_info renderable.
Other components rendering the availability information should handle the showmore/showless behaviour themselves.

- Deprecate JS module and string.

- Move availability_info header generation logic to a new protected function to improve code readability.
This commit is contained in:
Mikel Martín
2023-06-26 09:32:36 +02:00
parent 3cd84747cb
commit 09d9f367b6
8 changed files with 35 additions and 64 deletions
@@ -16,6 +16,8 @@
/**
* Show more action for availablity information.
*
* @deprecated since 4.3 MDL-78204.
* @todo MDL-78489 This will be deleted in Moodle 4.7.
* @module core_availability/availability_more
* @copyright 2021 Bas Brands <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later