system/View/Plugins.php
public static function ValidationErrors(array $params = []): string
	{
		$validator = \Config\Services::validation();
		if (empty($params))
		{
			return $validator->listErrors();
		}

		return $validator->showError($params['field']);
	}
public static function ValidationErrors(array $params = []): string
	{
		$validator = \Config\Services::validation();
		if (empty($params))
		{
			return $validator->listErrors();
		}

		return $validator->showError($params['field']);
	}
@param array $params

@return string