Inpsyde\MultilingualPress\Installation\PluginDeactivator::get_errors_as_string PHP Метод

get_errors_as_string() приватный Метод

Returns the according string for all error messages to be displayed in the admin notice.
private get_errors_as_string ( ) : string
Результат string Error messages.
    private function get_errors_as_string()
    {
        if (!$this->errors) {
            return '';
        }
        $errors = array_map(function ($error) {
            return "<p>{$error}</p>";
        }, $this->errors);
        return implode('', $errors);
    }