Yoast\WP\SEO\AI\Authentication\Application
OAuth_Auth_Strategy::error_label
Returns a log-friendly label for an error code, substituting unknown for an empty code.
Метод класса: OAuth_Auth_Strategy{}
Хуков нет.
Возвращает
Строку. The label to log.
Использование
// private - только в коде основоного (родительского) класса $result = $this->error_label( $error_code ): string;
- $error_code(строка) (обязательный)
- The resolved error code.
Код OAuth_Auth_Strategy::error_label() OAuth Auth Strategy::error label Yoast 28.3
private function error_label( string $error_code ): string {
return ( $error_code === '' ) ? 'unknown' : $error_code;
}