MDL-79086 core: Final removal of share_activity

Signed-off-by: Daniel Ziegenberg <[email protected]>
This commit is contained in:
Daniel Ziegenberg
2025-03-16 19:23:06 +01:00
parent 8f89677192
commit c732fe8f79
2 changed files with 9 additions and 9 deletions
@@ -0,0 +1,5 @@
issueNumber: MDL-79086
notes:
core:
- message: 'Final removal of `share_activity()` in `core\moodlenet\activity_sender`, please use `share_resource()` instead.'
type: removed
+4 -9
View File
@@ -58,16 +58,11 @@ class activity_sender extends resource_sender {
}
/**
* Share an activity/resource to MoodleNet.
*
* @return array The HTTP response code from MoodleNet and the MoodleNet draft resource URL (URL empty string on fail).
* Format: ['responsecode' => 201, 'drafturl' => 'https://draft.mnurl/here']
* @deprecated since Moodle 4.3
* @todo Final deprecation MDL-79086
* @deprecated since Moodle 4.3 MDL-75318
*/
public function share_activity(): array {
debugging('Method share_activity is deprecated, use share_resource instead.', DEBUG_DEVELOPER);
return $this->share_resource();
#[\core\attribute\deprecated('share_resource()', since: '4.3', mdl: 'MDL-75318', final: true)]
public function share_activity() {
\core\deprecation::emit_deprecation_if_present([self::class, __FUNCTION__]);
}
/**