diff --git a/core/includes/theme.inc b/core/includes/theme.inc
index 726503e..aaff997 100644
--- a/core/includes/theme.inc
+++ b/core/includes/theme.inc
@@ -1241,6 +1241,7 @@ function theme_links($variables) {
         'href' => NULL,
         'route_name' => NULL,
         'route_parameters' => NULL,
+        'ajax' => NULL,
       );
 
       $class = array();
@@ -1262,14 +1263,9 @@ function theme_links($variables) {
         '#href' => $link['href'],
         '#route_name' => $link['route_name'],
         '#route_parameters' => $link['route_parameters'],
+        '#ajax' => $link['ajax'],
       );
 
-      // @todo Reconcile Views usage of 'ajax' as a boolean with the rest of
-      //   core's usage of it as an array.
-      if (isset($link['ajax']) && is_array($link['ajax'])) {
-        $link_element['#ajax'] = $link['ajax'];
-      }
-
       // Handle links and ensure that the active class is added on the LIs.
       if (isset($link['route_name'])) {
         $variables = array(
diff --git a/core/modules/views_ui/lib/Drupal/views_ui/ViewListController.php b/core/modules/views_ui/lib/Drupal/views_ui/ViewListController.php
index 0c38908..ed9d983 100644
--- a/core/modules/views_ui/lib/Drupal/views_ui/ViewListController.php
+++ b/core/modules/views_ui/lib/Drupal/views_ui/ViewListController.php
@@ -154,31 +154,17 @@ public function getOperations(EntityInterface $entity) {
     // Add AJAX functionality to enable/disable operations.
     foreach (array('enable', 'disable') as $op) {
       if (isset($operations[$op])) {
-        $operations[$op]['ajax'] = TRUE;
         $operations[$op]['route_name'] = 'views_ui.operation';
         $operations[$op]['route_parameters'] = array('view' => $entity->id(), 'op' => $op);
         // @todo Remove this when entity links use route_names.
         unset($operations[$op]['href']);
-      }
-    }
-
-    return $operations;
-  }
 
-  /**
-   * {@inheritdoc}
-   */
-  public function buildOperations(EntityInterface $entity) {
-    $build = parent::buildOperations($entity);
-
-    // Allow operations to specify that they use AJAX.
-    foreach ($build['#links'] as &$operation) {
-      if (!empty($operation['ajax'])) {
-        $operation['attributes']['class'][] = 'use-ajax';
+        // Enable and disable operations should use AJAX.
+        $operations[$op]['attributes']['class'][] = 'use-ajax';
       }
     }
 
-    return $build;
+    return $operations;
   }
 
   /**
