/**
* Get options and make them into arrays suitable for OOUI.
- * @return array Options for inclusion in a select or whatever.
+ * @throws MWException
*/
public function getOptionsOOUI() {
// Sections make this difficult. See getInputOOUI().
}
public function getDefault() {
- if ( isset( $this->mDefault ) ) {
- return $this->mDefault;
- } else {
- return [];
- }
+ return $this->mDefault ?? [];
}
public function filterDataForSubmit( $data ) {