Checks whether the given speculation rules mode is valid.
Parameters
$modemixedrequired- Speculation rules mode.
Source
public static function is_valid_mode( $mode ): bool {
return is_string( $mode ) && isset( self::$mode_allowlist[ $mode ] );
}
Checks whether the given speculation rules mode is valid.
$modemixedrequiredpublic static function is_valid_mode( $mode ): bool {
return is_string( $mode ) && isset( self::$mode_allowlist[ $mode ] );
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.