}
/**
- * Set whether the HTML form can be collapsed.
+ * Enable collapsible mode, and set whether the form is collapsed by default.
*
* @since 1.34
- * @param bool $collapsedByDefault (optional) whether the form is collapsed by default
+ * @param bool $collapsedByDefault Whether the form is collapsed by default (optional).
* @return HTMLForm $this for chaining calls
*/
public function setCollapsibleOptions( $collapsedByDefault = false ) {
return $this->displaySection( $this->mFieldTree, $this->mTableId );
}
- /**
- * Format and display an error message stack.
- *
- * @param string|array|Status $errors
- *
- * @deprecated since 1.28, use getErrorsOrWarnings() instead
- *
- * @return string
- */
- public function getErrors( $errors ) {
- wfDeprecated( __METHOD__, '1.28' );
- return $this->getErrorsOrWarnings( $errors, 'error' );
- }
-
/**
* Returns a formatted list of errors or warnings from the given elements.
*