The function print_arrow() is marked as deprecated and developers should use the $OUTPUT->arrow() function instead.
There does not appear to be an arrow() function on the output renderer by default. There is an option for rarrow and larrow however the print_arrow() function supported 4 orientations (up, down, left and right).