forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'MDL-77541' of https://github.com/paulholden/moodle
- Loading branch information
Showing
2 changed files
with
7 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,17 +14,9 @@ | |
// You should have received a copy of the GNU General Public License | ||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
/** | ||
* Class field | ||
* | ||
* @package customfield_select | ||
* @copyright 2018 David Matamoros <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
|
||
namespace customfield_select; | ||
|
||
defined('MOODLE_INTERNAL') || die; | ||
use coding_exception; | ||
|
||
/** | ||
* Class field | ||
|
@@ -56,17 +48,10 @@ public function config_form_definition(\MoodleQuickForm $mform) { | |
} | ||
|
||
/** | ||
* Returns the options available as an array. | ||
* | ||
* @param \core_customfield\field_controller $field | ||
* @return array | ||
* | ||
* @deprecated since Moodle 3.10 - MDL-68569 please use $field->get_options | ||
*/ | ||
public static function get_options_array(\core_customfield\field_controller $field) : array { | ||
debugging('get_options_array() is deprecated, please use $field->get_options() instead', DEBUG_DEVELOPER); | ||
|
||
return $field->get_options(); | ||
public static function get_options_array(): void { | ||
throw new coding_exception('get_options_array() is deprecated, please use $field->get_options() instead'); | ||
} | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters