- /**
- * Determine notices to display for the field.
- *
- * @since 1.28
- * @deprecated since 1.32
- * @param string $skipDeprecation Pass 'skip deprecation' to avoid the deprecation
- * warning (since 1.32)
- * @return string[]
- */
- public function getNotices( $skipDeprecation = null ) {
- if ( $skipDeprecation !== 'skip deprecation' ) {
- wfDeprecated( __METHOD__, '1.32' );
- }
-
- $notices = [];
-
- if ( isset( $this->mParams['notice-message'] ) ) {
- $notices[] = $this->getMessage( $this->mParams['notice-message'] )->parse();
- }
-
- if ( isset( $this->mParams['notice-messages'] ) ) {
- foreach ( $this->mParams['notice-messages'] as $msg ) {
- $notices[] = $this->getMessage( $msg )->parse();
- }
- } elseif ( isset( $this->mParams['notice'] ) ) {
- $notices[] = $this->mParams['notice'];
- }
-
- return $notices;
- }
-