Drupal 8: Add a class to the more link of a view.

Profile picture for user Phil Frilling
By Phil Frilling, 17 November, 2016

/**
 * Implements template_preprocess_views_view()
 * @param array $vars
 */
function MYTHEME_preprocess_views_view(&$variables) {
  if ($variables['id'] == 'MY_VIEW_ID') {
    $variables['more']['#options']['attributes']['class'] = array(
      'button'
    );
  }
}
Thanks: http://drupal.stackexchange.com/a/203366