Formats column headers have sort links and sort arrows.
public formatColumnHeaders ( array $columns, string $sort_by, string $sort_dir, string $view ) : array | ||
$columns | array | The columns to format. |
$sort_by | string | The current 'sort-by' column. |
$sort_dir | string | The current sort direction. |
$view | string | The view name, used to identify preference settings for sorting. |
return | array | The formated column headers to be displayed. |