mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-66034 core: deprecate role_capabilities_updated event
This commit is contained in:
parent
32306e8390
commit
e9b88bcb73
3 changed files with 17 additions and 1 deletions
|
@ -27,6 +27,9 @@ namespace core\event;
|
|||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
debugging('core\\event\\role_capabilities_updated has been deprecated. Please use
|
||||
core\\event\\capability_assigned instead', DEBUG_DEVELOPER);
|
||||
|
||||
/**
|
||||
* Role updated event class.
|
||||
*
|
||||
|
@ -102,4 +105,14 @@ class role_capabilities_updated extends base {
|
|||
public static function get_objectid_mapping() {
|
||||
return array('db' => 'role', 'restore' => 'role');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This event has been deprecated.
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public static function is_deprecated() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue