Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagephp
    /**
     * Description here.
     *
     * @deprecated since Totara 19.0
     * @param stdClass $context the context
     * 
     * @return bool
     */
    public function do_something($context) {
      debugging(__METHOD__ . ' has been deprecated; please use new_method() instead', DEBUG_DEVELOPER);

      return (bool) $this->new_method($context);
    }

Deprecating language strings

This topic has its own page: Deprecating Language Strings which should be folded into this one in a future update.

Please note that there is an issue when the deprecated langstring is used in a deprecated Vue component, it will still be included in the compiled Tui bundle. This will cause a usage log message that will fail behat tests.

Changing function or method arguments

...