diff --git a/core/core.services.yml b/core/core.services.yml
index 9a36139..afcd12e 100644
--- a/core/core.services.yml
+++ b/core/core.services.yml
@@ -154,6 +154,9 @@ services:
   plugin.manager.archiver:
     class: Drupal\Core\Archiver\ArchiverManager
     arguments: ['@container.namespaces']
+  plugin.manager.operation:
+    class: Drupal\Core\Operation\OperationManager
+    arguments: ['@container.namespaces']
   request:
     class: Symfony\Component\HttpFoundation\Request
   event_dispatcher:
diff --git a/core/lib/Drupal/Core/Annotation/Operation.php b/core/lib/Drupal/Core/Annotation/Operation.php
new file mode 100644
index 0000000..4f82a49
--- /dev/null
+++ b/core/lib/Drupal/Core/Annotation/Operation.php
@@ -0,0 +1,67 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\Core\Annotation\Operation.
+ */
+
+namespace Drupal\Core\Annotation;
+
+use Drupal\Component\Annotation\Plugin;
+
+/**
+ * Defines an Operation annotation object.
+ *
+ * This hook enables modules to inject custom operations into the mass
+ * operations dropdown found at admin/content, by associating a callback
+ * function with the operation, which is called when the form is submitted. The
+ * callback function receives one initial argument, which is an array of the
+ * checked nodes.
+ *
+ * @return
+ *   An array of operations. Each operation is an associative array that may
+ *   contain the following key-value pairs:
+ *   - label: (required) The label for the operation, displayed in the dropdown
+ *     menu.
+ *   - callback: (required) The function to call for the operation.
+ *   - callback arguments: (optional) An array of additional arguments to pass
+ *     to the callback function.
+ *
+ * @see \Drupal\Core\Operation\OperationInterface
+ * @see \Drupal\Core\Operation\OperationManager
+ *
+ * @Annotation
+ */
+class Operation extends Plugin {
+
+  /**
+   * The plugin ID.
+   *
+   * @var string
+   */
+  public $id;
+
+  /**
+   * The human-readable name of the operation plugin.
+   *
+   * @ingroup plugin_translatable
+   *
+   * @var \Drupal\Core\Annotation\Translation
+   */
+  public $label;
+
+  /**
+   * A URL to redirect to after processing the operation.
+   *
+   * @var string (optional)
+   */
+  public $redirect = '';
+
+  /**
+   * The entity type the operation can apply to.
+   *
+   * @var string
+   */
+  public $type = '';
+
+}
diff --git a/core/lib/Drupal/Core/Operation/ConfigurableOperationInterface.php b/core/lib/Drupal/Core/Operation/ConfigurableOperationInterface.php
new file mode 100644
index 0000000..aae7f7f
--- /dev/null
+++ b/core/lib/Drupal/Core/Operation/ConfigurableOperationInterface.php
@@ -0,0 +1,33 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\Core\Operation\ConfigurableOperationInterface.
+ */
+
+namespace Drupal\Core\Operation;
+
+/**
+ * Provides an interface for an Operation plugin.
+ *
+ * @see \Drupal\Core\Annotation\Operation
+ * @see \Drupal\Core\Operation\OperationManager
+ */
+interface ConfigurableOperationInterface extends OperationInterface {
+
+  /**
+   * @todo.
+   */
+  public function form(array $form, array &$form_state);
+
+  /**
+   * @todo.
+   */
+  public function validate(array &$form, array &$form_state);
+
+  /**
+   * @todo.
+   */
+  public function submit(array &$form, array &$form_state);
+
+}
diff --git a/core/lib/Drupal/Core/Operation/OperationBag.php b/core/lib/Drupal/Core/Operation/OperationBag.php
new file mode 100644
index 0000000..71f2bfb
--- /dev/null
+++ b/core/lib/Drupal/Core/Operation/OperationBag.php
@@ -0,0 +1,52 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\Core\Operation\OperationBag.
+ */
+
+namespace Drupal\Core\Operation;
+
+use Drupal\Component\Plugin\PluginBag;
+use Drupal\Component\Plugin\PluginManagerInterface;
+
+/**
+ * @todo.
+ */
+class OperationBag extends PluginBag {
+
+  /**
+   * The manager used to instantiate the plugins.
+   *
+   * @var \Drupal\Component\Plugin\PluginManagerInterface
+   */
+  protected $manager;
+
+  /**
+   * Constructs a new OperationBag object.
+   *
+   * @param \Drupal\Component\Plugin\PluginManagerInterface $manager
+   *   The manager to be used for instantiating plugins.
+   * @param array $instance_ids
+   *   The ids of the plugin instances with which we are dealing.
+   * @param array $configuration
+   *   An array of configuration.
+   */
+  public function __construct(PluginManagerInterface $manager, array $instance_ids, array $configuration) {
+    $this->manager = $manager;
+    $this->instanceIDs = drupal_map_assoc($instance_ids);
+    $this->configuration = $configuration;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function initializePlugin($instance_id) {
+    if (isset($this->pluginInstances[$instance_id])) {
+      return;
+    }
+
+    $this->pluginInstances[$instance_id] = $this->manager->createInstance($instance_id, $this->configuration);
+  }
+
+}
diff --git a/core/lib/Drupal/Core/Operation/OperationBase.php b/core/lib/Drupal/Core/Operation/OperationBase.php
new file mode 100644
index 0000000..068a06b
--- /dev/null
+++ b/core/lib/Drupal/Core/Operation/OperationBase.php
@@ -0,0 +1,58 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\Core\Operation\OperationBase.
+ */
+
+namespace Drupal\Core\Operation;
+
+use Drupal\Core\Plugin\ContainerFactoryPluginBase;
+
+/**
+ * Provides a base implementation for an Operation plugin.
+ */
+abstract class OperationBase extends ContainerFactoryPluginBase implements OperationInterface {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function __construct(array $configuration, $plugin_id, array $plugin_definition) {
+    parent::__construct($configuration, $plugin_id, $plugin_definition);
+
+    $this->configuration += $this->getDefaultConfiguration();
+  }
+
+  /**
+   * @todo.
+   *
+   * @return array
+   */
+  protected function getDefaultConfiguration() {
+    return array();
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function execute(array $entities) {
+    foreach ($entities as $entity) {
+      $this->executeSingle($entity);
+    }
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function executeSingle($object) {
+    $this->execute(array($object));
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getConfiguration() {
+    return $this->configuration;
+  }
+
+}
diff --git a/core/lib/Drupal/Core/Operation/OperationInterface.php b/core/lib/Drupal/Core/Operation/OperationInterface.php
new file mode 100644
index 0000000..93f8d13
--- /dev/null
+++ b/core/lib/Drupal/Core/Operation/OperationInterface.php
@@ -0,0 +1,37 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\Core\Operation\OperationInterface.
+ */
+
+namespace Drupal\Core\Operation;
+
+use Drupal\Core\Entity\EntityInterface;
+
+/**
+ * Provides an interface for an Operation plugin.
+ *
+ * @see \Drupal\Core\Annotation\Operation
+ * @see \Drupal\Core\Operation\OperationManager
+ */
+interface OperationInterface {
+
+  /**
+   * @todo.
+   */
+  public function execute(array $objects);
+
+  /**
+   * @todo.
+   */
+  public function executeSingle($object);
+
+  /**
+   * @todo.
+   *
+   * @return array
+   */
+  public function getConfiguration();
+
+}
diff --git a/core/lib/Drupal/Core/Operation/OperationManager.php b/core/lib/Drupal/Core/Operation/OperationManager.php
new file mode 100644
index 0000000..76411ca
--- /dev/null
+++ b/core/lib/Drupal/Core/Operation/OperationManager.php
@@ -0,0 +1,52 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\Core\Operation\OperationManager.
+ */
+
+namespace Drupal\Core\Operation;
+
+use Drupal\Component\Plugin\PluginManagerBase;
+use Drupal\Core\Plugin\Discovery\AlterDecorator;
+use Drupal\Core\Plugin\Discovery\AnnotatedClassDiscovery;
+use Drupal\Core\Plugin\Factory\ContainerFactory;
+
+/**
+ * Provides an Operation plugin manager.
+ *
+ * @see \Drupal\Core\Annotation\Operation
+ * @see \Drupal\Core\Operation\OperationInterface
+ */
+class OperationManager extends PluginManagerBase {
+
+  /**
+   * Constructs a OperationManager object.
+   *
+   * @param \Traversable $namespaces
+   *   An object that implements \Traversable which contains the root paths
+   *   keyed by the corresponding namespace to look for plugin implementations.
+   */
+  public function __construct(\Traversable $namespaces) {
+    $this->discovery = new AnnotatedClassDiscovery('Operation', $namespaces, array(), 'Drupal\Core\Annotation\Operation');
+    $this->discovery = new AlterDecorator($this->discovery, 'operation_info');
+
+    $this->factory = new ContainerFactory($this);
+  }
+
+  /**
+   * Gets the plugin definitions for this entity type.
+   *
+   * @param string $type
+   *   The entity type name.
+   *
+   * @return array
+   *   An array of plugin definitions for this entity type.
+   */
+  public function getDefinitionsByType($type) {
+    return array_filter($this->getDefinitions(), function ($definition) use ($type) {
+      return $definition['type'] === $type;
+    });
+  }
+
+}
diff --git a/core/modules/action/action.admin.inc b/core/modules/action/action.admin.inc
deleted file mode 100644
index 89202c3..0000000
--- a/core/modules/action/action.admin.inc
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-/**
- * @file
- * Admin page callbacks for the Action module.
- */
-
-/**
- * Post-deletion operations for deleting action orphans.
- *
- * @param $orphaned
- *   An array of orphaned actions.
- */
-function action_admin_delete_orphans_post($orphaned) {
-  foreach ($orphaned as $callback) {
-    drupal_set_message(t("Deleted orphaned action (%action).", array('%action' => $callback)));
-  }
-}
diff --git a/core/modules/action/action.api.php b/core/modules/action/action.api.php
index 8e92c62..911c9d0 100644
--- a/core/modules/action/action.api.php
+++ b/core/modules/action/action.api.php
@@ -6,84 +6,6 @@
  */
 
 /**
- * Declares information about actions.
- *
- * Any module can define actions, and then call actions_do() to make those
- * actions happen in response to events.
- *
- * An action consists of two or three parts:
- * - an action definition (returned by this hook)
- * - a function which performs the action (which by convention is named
- *   MODULE_description-of-function_action)
- * - an optional form definition function that defines a configuration form
- *   (which has the name of the action function with '_form' appended to it.)
- *
- * The action function takes two to four arguments, which come from the input
- * arguments to actions_do().
- *
- * @return
- *   An associative array of action descriptions. The keys of the array
- *   are the names of the action functions, and each corresponding value
- *   is an associative array with the following key-value pairs:
- *   - 'type': The type of object this action acts upon. Core actions have types
- *     'node', 'user', 'comment', and 'system'.
- *   - 'label': The human-readable name of the action, which should be passed
- *     through the t() function for translation.
- *   - 'configurable': If FALSE, then the action doesn't require any extra
- *     configuration. If TRUE, then your module must define a form function with
- *     the same name as the action function with '_form' appended (e.g., the
- *     form for 'node_assign_owner_action' is 'node_assign_owner_action_form'.)
- *     This function takes $context as its only parameter, and is paired with
- *     the usual _submit function, and possibly a _validate function.
- *   - 'triggers': An array of the events (that is, hooks) that can trigger this
- *     action. For example: array('node_insert', 'user_update'). You can also
- *     declare support for any trigger by returning array('any') for this value.
- *   - 'behavior': (optional) A machine-readable array of behaviors of this
- *     action, used to signal additionally required actions that may need to be
- *     triggered. Modules that are processing actions should take special care
- *     for the "presave" hook, in which case a dependent "save" action should
- *     NOT be invoked.
- *
- * @ingroup actions
- */
-function hook_action_info() {
-  return array(
-    'comment_unpublish_action' => array(
-      'type' => 'comment',
-      'label' => t('Unpublish comment'),
-      'configurable' => FALSE,
-      'behavior' => array('changes_property'),
-      'triggers' => array('comment_presave', 'comment_insert', 'comment_update'),
-    ),
-    'comment_unpublish_by_keyword_action' => array(
-      'type' => 'comment',
-      'label' => t('Unpublish comment containing keyword(s)'),
-      'configurable' => TRUE,
-      'behavior' => array('changes_property'),
-      'triggers' => array('comment_presave', 'comment_insert', 'comment_update'),
-    ),
-    'comment_save_action' => array(
-      'type' => 'comment',
-      'label' => t('Save comment'),
-      'configurable' => FALSE,
-      'triggers' => array('comment_insert', 'comment_update'),
-    ),
-  );
-}
-
-/**
- * Alters the actions declared by another module.
- *
- * Called by action_list() to allow modules to alter the return values from
- * implementations of hook_action_info().
- *
- * @ingroup actions
- */
-function hook_action_info_alter(&$actions) {
-  $actions['node_unpublish_action']['label'] = t('Unpublish and remove from public view.');
-}
-
-/**
  * Executes code after an action is deleted.
  *
  * @param $aid
diff --git a/core/modules/action/action.install b/core/modules/action/action.install
deleted file mode 100644
index 4e500fd..0000000
--- a/core/modules/action/action.install
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-
-/**
- * @file
- * Install, update and uninstall functions for the Actions module.
- */
-
-/**
- * Implements hook_schema().
- */
-function action_schema() {
-  // 'action' is a reserved SQL keyword.
-  $schema['actions'] = array(
-    'description' => 'Stores action information.',
-    'fields' => array(
-      'aid' => array(
-        'description' => 'Primary Key: Unique action ID.',
-        'type' => 'varchar',
-        'length' => 255,
-        'not null' => TRUE,
-        'default' => '0',
-      ),
-      'type' => array(
-        'description' => 'The object that that action acts on (node, user, comment, system or custom types.)',
-        'type' => 'varchar',
-        'length' => 32,
-        'not null' => TRUE,
-        'default' => '',
-      ),
-      'callback' => array(
-        'description' => 'The callback function that executes when the action runs.',
-        'type' => 'varchar',
-        'length' => 255,
-        'not null' => TRUE,
-        'default' => '',
-      ),
-      'parameters' => array(
-        'description' => 'Parameters to be passed to the callback function.',
-        'type' => 'blob',
-        'not null' => TRUE,
-        'size' => 'big',
-      ),
-      'label' => array(
-        'description' => 'Label of the action.',
-        'type' => 'varchar',
-        'length' => 255,
-        'not null' => TRUE,
-        'default' => '0',
-      ),
-    ),
-    'primary key' => array('aid'),
-  );
-  return $schema;
-}
diff --git a/core/modules/action/action.module b/core/modules/action/action.module
index 0cd4397..b9c4f0f 100644
--- a/core/modules/action/action.module
+++ b/core/modules/action/action.module
@@ -12,7 +12,6 @@
  * @{
  * Functions that perform an action on a certain system object.
  *
- * Action functions are declared by modules by implementing hook_action_info().
  * Modules can cause action functions to run by calling actions_do().
  *
  * Each action function takes two to four arguments:
@@ -69,12 +68,17 @@ function action_menu() {
     'description' => 'Manage the actions defined for your site.',
     'type' => MENU_DEFAULT_LOCAL_TASK,
   );
+  $items['admin/config/system/actions/add'] = array(
+    'title' => 'Create an advanced action',
+    'type' => MENU_VISIBLE_IN_BREADCRUMB,
+    'route_name' => 'action_admin_add',
+  );
   $items['admin/config/system/actions/configure'] = array(
     'title' => 'Configure an advanced action',
     'type' => MENU_VISIBLE_IN_BREADCRUMB,
     'route_name' => 'action_admin_configure',
   );
-  $items['admin/config/system/actions/delete/%action'] = array(
+  $items['admin/config/system/actions/configure/%/delete'] = array(
     'title' => 'Delete action',
     'description' => 'Delete an action.',
     'route_name' => 'action_delete',
@@ -83,11 +87,12 @@ function action_menu() {
 }
 
 /**
- * Implements hook_rebuild().
+ * Implements hook_entity_info().
  */
-function action_rebuild() {
-  // Synchronize any actions that were added or removed.
-  action_synchronize();
+function action_entity_info(&$entity_info) {
+  $entity_info['action']['controllers']['form']['add'] = 'Drupal\action\ActionAddFormController';
+  $entity_info['action']['controllers']['form']['edit'] = 'Drupal\action\ActionEditFormController';
+  $entity_info['action']['controllers']['list'] = 'Drupal\action\ActionListController';
 }
 
 /**
@@ -130,137 +135,14 @@ function actions_do($action_ids, $object = NULL, $context = NULL, $a1 = NULL, $a
     watchdog('action', 'Stack overflow: recursion limit for actions_do() has been reached. Stack is limited by %limit calls.', array('%limit' => $recursion_limit), WATCHDOG_ERROR);
     return;
   }
-  $actions = array();
-  $available_actions = action_list();
-  $result = array();
-  if (is_array($action_ids)) {
-    $conditions = array();
-    foreach ($action_ids as $action_id) {
-      if (is_numeric($action_id)) {
-        $conditions[] = $action_id;
-      }
-      elseif (isset($available_actions[$action_id])) {
-        $actions[$action_id] = $available_actions[$action_id];
-      }
-    }
-
-    // When we have action instances we must go to the database to retrieve
-    // instance data.
-    if (!empty($conditions)) {
-      $query = db_select('actions');
-      $query->addField('actions', 'aid');
-      $query->addField('actions', 'type');
-      $query->addField('actions', 'callback');
-      $query->addField('actions', 'parameters');
-      $query->condition('aid', $conditions, 'IN');
-      foreach ($query->execute() as $action) {
-        $actions[$action->aid] = $action->parameters ? unserialize($action->parameters) : array();
-        $actions[$action->aid]['callback'] = $action->callback;
-        $actions[$action->aid]['type'] = $action->type;
-      }
-    }
-
-    // Fire actions, in no particular order.
-    foreach ($actions as $action_id => $params) {
-      // Configurable actions need parameters.
-      if (is_numeric($action_id)) {
-        $function = $params['callback'];
-        if (function_exists($function)) {
-          $context = array_merge($context, $params);
-          $result[$action_id] = $function($object, $context, $a1, $a2);
-        }
-        else {
-          $result[$action_id] = FALSE;
-        }
-      }
-      // Singleton action; $action_id is the function name.
-      else {
-        $result[$action_id] = $action_id($object, $context, $a1, $a2);
-      }
-    }
+  if (!is_array($action_ids)) {
+    $action_ids = array($action_ids);
   }
-  // Optimized execution of a single action.
-  else {
-    // If it's a configurable action, retrieve stored parameters.
-    if (is_numeric($action_ids)) {
-      $action = db_query("SELECT callback, parameters FROM {actions} WHERE aid = :aid", array(':aid' => $action_ids))->fetchObject();
-      $function = $action->callback;
-      if (function_exists($function)) {
-        $context = array_merge($context, unserialize($action->parameters));
-        $result[$action_ids] = $function($object, $context, $a1, $a2);
-      }
-      else {
-        $result[$action_ids] = FALSE;
-      }
-    }
-    // Singleton action; $action_ids is the function name.
-    else {
-      if (function_exists($action_ids)) {
-        $result[$action_ids] = $action_ids($object, $context, $a1, $a2);
-      }
-      else {
-        // Set to avoid undefined index error messages later.
-        $result[$action_ids] = FALSE;
-      }
-    }
+  $manager = Drupal::service('plugin.manager.operation');
+  foreach ($action_ids as $action_id) {
+    $manager->createInstance($action_id)->executeSingle($object);
   }
   $stack--;
-  return $result;
-}
-
-/**
- * Discovers all available actions by invoking hook_action_info().
- *
- * This function contrasts with action_get_all_actions(); see the
- * documentation of action_get_all_actions() for an explanation.
- *
- * @param $reset
- *   Reset the action info static cache.
- *
- * @return
- *   An associative array keyed on action function name, with the same format
- *   as the return value of hook_action_info(), containing all
- *   modules' hook_action_info() return values as modified by any
- *   hook_action_info_alter() implementations.
- *
- * @see hook_action_info()
- */
-function action_list($reset = FALSE) {
-  $actions = &drupal_static(__FUNCTION__);
-  if (!isset($actions) || $reset) {
-    $actions = module_invoke_all('action_info');
-    drupal_alter('action_info', $actions);
-  }
-
-  // See module_implements() for an explanation of this cast.
-  return (array) $actions;
-}
-
-/**
- * Retrieves all action instances from the database.
- *
- * This function differs from the action_list() function, which gathers
- * actions by invoking hook_action_info(). The actions returned by this
- * function and the actions returned by action_list() are partially
- * synchronized. Non-configurable actions from hook_action_info()
- * implementations are put into the database when action_synchronize() is
- * called, which happens when admin/config/system/actions is visited.
- * Configurable actions are not added to the database until they are configured
- * in the user interface, in which case a database row is created for each
- * configuration of each action.
- *
- * @return
- *   Associative array keyed by numeric action ID. Each value is an associative
- *   array with keys 'callback', 'label', 'type' and 'configurable'.
- */
-function action_get_all_actions() {
-  $actions = db_query("SELECT aid, type, callback, parameters, label FROM {actions}")->fetchAllAssoc('aid', PDO::FETCH_ASSOC);
-  foreach ($actions as &$action) {
-    $action['configurable'] = (bool) $action['parameters'];
-    unset($action['parameters']);
-    unset($action['aid']);
-  }
-  return $actions;
 }
 
 /**
@@ -272,12 +154,11 @@ function action_get_all_actions() {
  * @param $actions
  *   An associative array with function names or action IDs as keys
  *   and associative arrays with keys 'label', 'type', etc. as values.
- *   This is usually the output of action_list() or action_get_all_actions().
  *
  * @return
  *   An associative array whose keys are hashes of the input array keys, and
  *   whose corresponding values are associative arrays with components
- *   'callback', 'label', 'type', and 'configurable' from the input array.
+ *   'callback', 'label', and 'type' from the input array.
  */
 function action_actions_map($actions) {
   $actions_map = array();
@@ -286,412 +167,6 @@ function action_actions_map($actions) {
     $actions_map[$key]['callback']     = isset($array['callback']) ? $array['callback'] : $callback;
     $actions_map[$key]['label']        = $array['label'];
     $actions_map[$key]['type']         = $array['type'];
-    $actions_map[$key]['configurable'] = $array['configurable'];
   }
   return $actions_map;
 }
-
-/**
- * Returns an action array key (function or ID), given its hash.
- *
- * Faster than action_actions_map() when you only need the function name or ID.
- *
- * @param $hash
- *   Hash of a function name or action ID array key. The array key
- *   is a key into the return value of action_list() (array key is the action
- *   function name) or action_get_all_actions() (array key is the action ID).
- *
- * @return
- *   The corresponding array key, or FALSE if no match is found.
- */
-function action_function_lookup($hash) {
-  // Check for a function name match.
-  $actions_list = action_list();
-  foreach ($actions_list as $function => $array) {
-    if (Crypt::hashBase64($function) == $hash) {
-      return $function;
-    }
-  }
-  $aid = FALSE;
-  // Must be a configurable action; check database.
-  $result = db_query("SELECT aid FROM {actions} WHERE parameters <> ''")->fetchAll(PDO::FETCH_ASSOC);
-  foreach ($result as $row) {
-    if (Crypt::hashBase64($row['aid']) == $hash) {
-      $aid = $row['aid'];
-      break;
-    }
-  }
-  return $aid;
-}
-
-/**
- * Synchronizes actions that are provided by modules in hook_action_info().
- *
- * Actions provided by modules in hook_action_info() implementations are
- * synchronized with actions that are stored in the actions database table.
- * This is necessary so that actions that do not require configuration can
- * receive action IDs.
- *
- * @param $delete_orphans
- *   If TRUE, any actions that exist in the database but are no longer
- *   found in the code (for example, because the module that provides them has
- *   been disabled) will be deleted.
- */
-function action_synchronize($delete_orphans = FALSE) {
-  $actions_in_code = action_list(TRUE);
-  $actions_in_db = db_query("SELECT aid, callback, label FROM {actions} WHERE parameters = ''")->fetchAllAssoc('callback', PDO::FETCH_ASSOC);
-
-  // Go through all the actions provided by modules.
-  foreach ($actions_in_code as $callback => $array) {
-    // Ignore configurable actions since their instances get put in when the
-    // user adds the action.
-    if (!$array['configurable']) {
-      // If we already have an action ID for this action, no need to assign aid.
-      if (isset($actions_in_db[$callback])) {
-        unset($actions_in_db[$callback]);
-      }
-      else {
-        // This is a new singleton that we don't have an aid for; assign one.
-        db_insert('actions')
-          ->fields(array(
-            'aid' => $callback,
-            'type' => $array['type'],
-            'callback' => $callback,
-            'parameters' => '',
-            'label' => $array['label'],
-            ))
-          ->execute();
-        watchdog('action', "Action '%action' added.", array('%action' => $array['label']));
-      }
-    }
-  }
-
-  // Any actions that we have left in $actions_in_db are orphaned.
-  if ($actions_in_db) {
-    $orphaned = array_keys($actions_in_db);
-
-    if ($delete_orphans) {
-      $actions = db_query('SELECT aid, label FROM {actions} WHERE callback IN (:orphaned)', array(':orphaned' => $orphaned))->fetchAll();
-      foreach ($actions as $action) {
-        action_delete($action->aid);
-        watchdog('action', "Removed orphaned action '%action' from database.", array('%action' => $action->label));
-      }
-    }
-    else {
-      $link = l(t('Remove orphaned actions'), 'admin/config/system/actions/orphan');
-      $count = count($actions_in_db);
-      $orphans = implode(', ', $orphaned);
-      watchdog('action', '@count orphaned actions (%orphans) exist in the actions table. !link', array('@count' => $count, '%orphans' => $orphans, '!link' => $link), WATCHDOG_INFO);
-    }
-  }
-}
-
-/**
- * Saves an action and its user-supplied parameter values to the database.
- *
- * @param $function
- *   The name of the function to be called when this action is performed.
- * @param $type
- *   The type of action, to describe grouping and/or context, e.g., 'node',
- *   'user', 'comment', or 'system'.
- * @param $params
- *   An associative array with parameter names as keys and parameter values as
- *   values.
- * @param $label
- *   A user-supplied label of this particular action, e.g., 'Send e-mail
- *   to Jim'.
- * @param $aid
- *   The ID of this action. If omitted, a new action is created.
- *
- * @return
- *   The ID of the action.
- */
-function action_save($function, $type, $params, $label, $aid = NULL) {
-  // aid is the callback for singleton actions so we need to keep a separate
-  // table for numeric aids.
-  if (!$aid) {
-    $aid = db_next_id();
-  }
-
-  db_merge('actions')
-    ->key(array('aid' => $aid))
-    ->fields(array(
-      'callback' => $function,
-      'type' => $type,
-      'parameters' => serialize($params),
-      'label' => $label,
-    ))
-    ->execute();
-
-  watchdog('action', 'Action %action saved.', array('%action' => $label));
-  return $aid;
-}
-
-/**
- * Retrieves a single action from the database.
- *
- * @param $aid
- *   The ID of the action to retrieve.
- *
- * @return
- *   The appropriate action row from the database as an object.
- */
-function action_load($aid) {
-  return db_query("SELECT aid, type, callback, parameters, label FROM {actions} WHERE aid = :aid", array(':aid' => $aid))->fetchObject();
-}
-
-/**
- * Deletes a single action from the database.
- *
- * @param $aid
- *   The ID of the action to delete.
- */
-function action_delete($aid) {
-  db_delete('actions')
-    ->condition('aid', $aid)
-    ->execute();
-  module_invoke_all('action_delete', $aid);
-}
-
-/**
- * Implements hook_action_info().
- *
- * @ingroup actions
- */
-function action_action_info() {
-  return array(
-    'action_message_action' => array(
-      'type' => 'system',
-      'label' => t('Display a message to the user'),
-      'configurable' => TRUE,
-      'triggers' => array('any'),
-    ),
-    'action_send_email_action' => array(
-      'type' => 'system',
-      'label' => t('Send e-mail'),
-      'configurable' => TRUE,
-      'triggers' => array('any'),
-    ),
-    'action_goto_action' => array(
-      'type' => 'system',
-      'label' => t('Redirect to URL'),
-      'configurable' => TRUE,
-      'triggers' => array('any'),
-    ),
-  );
-}
-
-/**
- * Return a form definition so the Send email action can be configured.
- *
- * @param $context
- *   Default values (if we are editing an existing action instance).
- *
- * @return
- *   Form definition.
- *
- * @see action_send_email_action_validate()
- * @see action_send_email_action_submit()
- */
-function action_send_email_action_form($context) {
-  // Set default values for form.
-  if (!isset($context['recipient'])) {
-    $context['recipient'] = '';
-  }
-  if (!isset($context['subject'])) {
-    $context['subject'] = '';
-  }
-  if (!isset($context['message'])) {
-    $context['message'] = '';
-  }
-
-  $form['recipient'] = array(
-    '#type' => 'textfield',
-    '#title' => t('Recipient'),
-    '#default_value' => $context['recipient'],
-    '#maxlength' => '254',
-    '#description' => t('The e-mail address to which the message should be sent OR enter [node:author:mail], [comment:author:mail], etc. if you would like to send an e-mail to the author of the original post.'),
-  );
-  $form['subject'] = array(
-    '#type' => 'textfield',
-    '#title' => t('Subject'),
-    '#default_value' => $context['subject'],
-    '#maxlength' => '254',
-    '#description' => t('The subject of the message.'),
-  );
-  $form['message'] = array(
-    '#type' => 'textarea',
-    '#title' => t('Message'),
-    '#default_value' => $context['message'],
-    '#cols' => '80',
-    '#rows' => '20',
-    '#description' => t('The message that should be sent. You may include placeholders like [node:title], [user:name], and [comment:body] to represent data that will be different each time message is sent. Not all placeholders will be available in all contexts.'),
-  );
-  return $form;
-}
-
-/**
- * Validates action_send_email_action() form submissions.
- */
-function action_send_email_action_validate($form, $form_state) {
-  $form_values = $form_state['values'];
-  // Validate the configuration form.
-  if (!valid_email_address($form_values['recipient']) && strpos($form_values['recipient'], ':mail') === FALSE) {
-    // We want the literal %author placeholder to be emphasized in the error message.
-    form_set_error('recipient', t('Enter a valid email address or use a token e-mail address such as %author.', array('%author' => '[node:author:mail]')));
-  }
-}
-
-/**
- * Processes action_send_email_action() form submissions.
- */
-function action_send_email_action_submit($form, $form_state) {
-  $form_values = $form_state['values'];
-  // Process the HTML form to store configuration. The keyed array that
-  // we return will be serialized to the database.
-  $params = array(
-    'recipient' => $form_values['recipient'],
-    'subject'   => $form_values['subject'],
-    'message'   => $form_values['message'],
-  );
-  return $params;
-}
-
-/**
- * Sends an e-mail message.
- *
- * @param object $entity
- *   An optional node entity, which will be added as $context['node'] if
- *   provided.
- * @param array $context
- *   Array with the following elements:
- *   - 'recipient': E-mail message recipient. This will be passed through
- *     \Drupal\Core\Utility\Token::replace().
- *   - 'subject': The subject of the message. This will be passed through
- *     \Drupal\Core\Utility\Token::replace().
- *   - 'message': The message to send. This will be passed through
- *     \Drupal\Core\Utility\Token::replace().
- *   - Other elements will be used as the data for token replacement.
- *
- * @ingroup actions
- */
-function action_send_email_action($entity, $context) {
-  if (empty($context['node'])) {
-    $context['node'] = $entity;
-  }
-
-  $recipient = Drupal::token()->replace($context['recipient'], $context);
-
-  // If the recipient is a registered user with a language preference, use
-  // the recipient's preferred language. Otherwise, use the system default
-  // language.
-  $recipient_account = user_load_by_mail($recipient);
-  if ($recipient_account) {
-    $langcode = user_preferred_langcode($recipient_account);
-  }
-  else {
-    $langcode = language_default()->langcode;
-  }
-  $params = array('context' => $context);
-
-  if (drupal_mail('system', 'action_send_email', $recipient, $langcode, $params)) {
-    watchdog('action', 'Sent email to %recipient', array('%recipient' => $recipient));
-  }
-  else {
-    watchdog('error', 'Unable to send email to %recipient', array('%recipient' => $recipient));
-  }
-}
-
-/**
- * Constructs the settings form for action_message_action().
- *
- * @see action_message_action_submit()
- */
-function action_message_action_form($context) {
-  $form['message'] = array(
-    '#type' => 'textarea',
-    '#title' => t('Message'),
-    '#default_value' => isset($context['message']) ? $context['message'] : '',
-    '#required' => TRUE,
-    '#rows' => '8',
-    '#description' => t('The message to be displayed to the current user. You may include placeholders like [node:title], [user:name], and [comment:body] to represent data that will be different each time message is sent. Not all placeholders will be available in all contexts.'),
-  );
-  return $form;
-}
-
-/**
- * Processes action_message_action form submissions.
- */
-function action_message_action_submit($form, $form_state) {
-  return array('message' => $form_state['values']['message']);
-}
-
-/**
- * Sends a message to the current user's screen.
- *
- * @param object $entity
- *   An optional node entity, which will be added as $context['node'] if
- *   provided.
- * @param array $context
- *   Array with the following elements:
- *   - 'message': The message to send. This will be passed through
- *     \Drupal\Core\Utility\Token::replace().
- *   - Other elements will be used as the data for token replacement in
- *     the message.
- *
- * @ingroup actions
- */
-function action_message_action(&$entity, $context = array()) {
-  if (empty($context['node'])) {
-    $context['node'] = $entity;
-  }
-
-  $context['message'] = Drupal::token()->replace(filter_xss_admin($context['message']), $context);
-  drupal_set_message($context['message']);
-}
-
-/**
- * Constructs the settings form for action_goto_action().
- *
- * @see action_goto_action_submit()
- */
-function action_goto_action_form($context) {
-  $form['url'] = array(
-    '#type' => 'textfield',
-    '#title' => t('URL'),
-    '#description' => t('The URL to which the user should be redirected. This can be an internal URL like node/1234 or an external URL like @url.', array('@url' => 'http://drupal.org')),
-    '#default_value' => isset($context['url']) ? $context['url'] : '',
-    '#required' => TRUE,
-  );
-  return $form;
-}
-
-/**
- * Processes action_goto_action form submissions.
- */
-function action_goto_action_submit($form, $form_state) {
-  return array(
-    'url' => $form_state['values']['url']
-  );
-}
-
-/**
- * Redirects to a different URL.
- *
- * Action functions are declared by modules by implementing hook_action_info().
- * Modules can cause action functions to run by calling actions_do().
- *
- * @param object $entity
- *   An optional node entity, which will be added as $context['node'] if
- *   provided.
- * @param array $context
- *   Array with the following elements:
- *   - 'url': URL to redirect to. This will be passed through
- *     \Drupal\Core\Utility\Token::replace().
- *   - Other elements will be used as the data for token replacement.
- *
- * @ingroup actions.
- */
-function action_goto_action($entity, $context) {
-  drupal_goto(Drupal::token()->replace($context['url'], $context));
-}
diff --git a/core/modules/action/action.routing.yml b/core/modules/action/action.routing.yml
index a7ed7b9..b8a0980 100644
--- a/core/modules/action/action.routing.yml
+++ b/core/modules/action/action.routing.yml
@@ -1,26 +1,27 @@
 action_admin:
   pattern: '/admin/config/system/actions'
   defaults:
-    _content: '\Drupal\action\Controller\ActionController::adminManage'
+    _content: '\Drupal\Core\Entity\Controller\EntityListController::listing'
+    entity_type: 'action'
   requirements:
     _permission: 'administer actions'
 
-action_admin_orphans_remove:
-  pattern: '/admin/config/system/actions/orphan'
+action_admin_add:
+  pattern: '/admin/config/system/actions/add/{action_id}'
   defaults:
-    _content: '\Drupal\action\Controller\ActionController::adminRemoveOrphans'
+    _entity_form: 'action.add'
   requirements:
     _permission: 'administer actions'
 
 action_admin_configure:
   pattern: '/admin/config/system/actions/configure/{action}'
   defaults:
-    _form: '\Drupal\action\Form\ActionAdminConfigureForm'
+    _entity_form: 'action.edit'
   requirements:
     _permission: 'administer actions'
 
 action_delete:
-  pattern: 'admin/config/system/actions/delete/{action}'
+  pattern: 'admin/config/system/actions/configure/{action}/delete'
   defaults:
     _form: '\Drupal\action\Form\DeleteForm'
   requirements:
diff --git a/core/modules/action/lib/Drupal/action/ActionAddFormController.php b/core/modules/action/lib/Drupal/action/ActionAddFormController.php
new file mode 100644
index 0000000..eceb190
--- /dev/null
+++ b/core/modules/action/lib/Drupal/action/ActionAddFormController.php
@@ -0,0 +1,47 @@
+<?php
+
+/**
+ * @file
+ * Contains Drupal\action\ActionAddFormController.
+ */
+
+namespace Drupal\action;
+
+/**
+ * Provides a form controller for action add forms.
+ */
+class ActionAddFormController extends ActionFormControllerBase {
+
+  /**
+   * @var array
+   */
+  protected $mappedAction;
+
+  /**
+   * {@inheritdoc}
+   */
+  public function buildForm(array $form, array &$form_state, $action_id = NULL) {
+    $actions = array();
+    foreach (\Drupal::service('plugin.manager.operation')->getDefinitions() as $id => $definition) {
+      if (is_subclass_of($definition['class'], '\Drupal\Core\Operation\ConfigurableOperationInterface')) {
+        $actions[$id] = $definition;
+      }
+    }
+    $actions_map = action_actions_map($actions);
+    $this->mappedAction = $actions_map[$action_id];
+    $this->entity->setPlugin($this->mappedAction['callback']);
+
+    return parent::buildForm($form, $form_state);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function form(array $form, array &$form_state) {
+    $form = parent::form($form, $form_state);
+    $form['label']['#default_value'] = $this->mappedAction['label'];
+    $form['type']['#value'] = $this->mappedAction['type'];
+    return $form;
+  }
+
+}
diff --git a/core/modules/action/lib/Drupal/action/ActionEditFormController.php b/core/modules/action/lib/Drupal/action/ActionEditFormController.php
new file mode 100644
index 0000000..ba758f5
--- /dev/null
+++ b/core/modules/action/lib/Drupal/action/ActionEditFormController.php
@@ -0,0 +1,15 @@
+<?php
+
+/**
+ * @file
+ * Contains Drupal\action\ActionEditFormController.
+ */
+
+namespace Drupal\action;
+
+/**
+ * Provides a form controller for action edit forms.
+ */
+class ActionEditFormController extends ActionFormControllerBase {
+
+}
diff --git a/core/modules/action/lib/Drupal/action/ActionFormControllerBase.php b/core/modules/action/lib/Drupal/action/ActionFormControllerBase.php
new file mode 100644
index 0000000..5f0f191
--- /dev/null
+++ b/core/modules/action/lib/Drupal/action/ActionFormControllerBase.php
@@ -0,0 +1,126 @@
+<?php
+
+/**
+ * @file
+ * Contains Drupal\action\ActionEditFormController.
+ */
+
+namespace Drupal\action;
+
+use Drupal\Core\Entity\EntityFormController;
+use Drupal\Core\Operation\ConfigurableOperationInterface;
+use Drupal\Component\Utility\Crypt;
+
+/**
+ * Provides a base form controller for action forms.
+ */
+class ActionFormControllerBase extends EntityFormController {
+
+  /**
+   * @var \Drupal\system\ActionInterface
+   */
+  protected $entity;
+
+  /**
+   * @var \Drupal\Core\Operation\OperationInterface
+   */
+  protected $plugin;
+
+  /**
+   * {@inheritdoc}
+   */
+  public function buildForm(array $form, array &$form_state) {
+    $this->plugin = $this->entity->getPlugin();
+    return parent::buildForm($form, $form_state);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function form(array $form, array &$form_state) {
+    $form['label'] = array(
+      '#type' => 'textfield',
+      '#title' => t('Label'),
+      '#default_value' => $this->entity->label(),
+      '#maxlength' => '255',
+      '#description' => t('A unique label for this advanced action. This label will be displayed in the interface of modules that integrate with actions.'),
+      '#weight' => -10,
+    );
+
+    $form['id'] = array(
+      '#type' => 'machine_name',
+      '#title' => t('Machine name'),
+      '#default_value' => $this->entity->id(),
+      '#disabled' => !$this->entity->isNew(),
+      '#maxlength' => 64,
+      '#description' => t('A unique name for this action. It must only contain lowercase letters, numbers and underscores.'),
+      '#machine_name' => array(
+        'exists' => array($this, 'exists'),
+      ),
+    );
+    $form['plugin'] = array(
+      '#type' => 'value',
+      '#value' => $this->entity->get('plugin'),
+    );
+    $form['type'] = array(
+      '#type' => 'value',
+      '#value' => $this->entity->getType(),
+    );
+
+    if ($this->plugin instanceof ConfigurableOperationInterface) {
+      $form += $this->plugin->form($form, $form_state);
+    }
+
+    return parent::form($form, $form_state);
+  }
+
+  /**
+   * Determines if the action already exists.
+   */
+  public function exists($id) {
+    return (bool) entity_load('action', $id);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function actions(array $form, array &$form_state) {
+    $actions = parent::actions($form, $form_state);
+    unset($actions['delete']);
+    return $actions;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function validate(array $form, array &$form_state) {
+    parent::validate($form, $form_state);
+
+    if ($this->plugin instanceof ConfigurableOperationInterface) {
+      $this->plugin->validate($form, $form_state);
+    }
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function submit(array $form, array &$form_state) {
+    parent::submit($form, $form_state);
+
+    if ($this->plugin instanceof ConfigurableOperationInterface) {
+      $this->plugin->submit($form, $form_state);
+    }
+    return $this->entity;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function save(array $form, array &$form_state) {
+    $this->entity->save();
+    drupal_set_message(t('The action has been successfully saved.'));
+
+    $form_state['redirect'] = 'admin/config/system/actions';
+  }
+
+}
diff --git a/core/modules/action/lib/Drupal/action/ActionListController.php b/core/modules/action/lib/Drupal/action/ActionListController.php
new file mode 100644
index 0000000..f32598a
--- /dev/null
+++ b/core/modules/action/lib/Drupal/action/ActionListController.php
@@ -0,0 +1,98 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\action\ActionListController.
+ */
+
+namespace Drupal\action;
+
+use Drupal\Core\Entity\EntityInterface;
+use Drupal\Core\Config\Entity\ConfigEntityListController;
+use Drupal\action\Form\ActionAdminManageForm;
+
+/**
+ * Provides a listing of Actions.
+ */
+class ActionListController extends ConfigEntityListController {
+
+  /**
+   * @var bool
+   */
+  protected $hasConfigurableActions = FALSE;
+
+  /**
+   * {@inheritdoc}
+   */
+  public function load() {
+    $entities = parent::load();
+    foreach ($entities as $entity) {
+      if ($entity->isConfigurable()) {
+        $this->hasConfigurableActions = TRUE;
+        continue;
+      }
+    }
+    return $entities;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function buildRow(EntityInterface $entity) {
+    $row['type'] = $entity->getType();
+    $row['label'] = $entity->label();
+    if ($this->hasConfigurableActions) {
+      $row['operations']['data'] = $this->buildOperations($entity);
+    }
+    return $row;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function buildHeader() {
+    $header = array(
+      'type' => t('Action type'),
+      'label' => t('Label'),
+      'operations' => t('Operations'),
+    );
+    return $header;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getOperations(EntityInterface $entity) {
+    $operations = array();
+    if ($entity->isConfigurable()) {
+      $uri = $entity->uri();
+      $operations['edit'] = array(
+        'title' => t('configure'),
+        'href' => $uri['path'],
+        'options' => $uri['options'],
+        'weight' => 10,
+      );
+      $operations['delete'] = array(
+        'title' => t('delete'),
+        'href' => $uri['path'] . '/delete',
+        'options' => $uri['options'],
+        'weight' => 100,
+      );
+    }
+    return $operations;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function render() {
+    $build['action_header']['#markup'] = '<h3>' . t('Available actions:') . '</h3>';
+    $build['action_table'] = parent::render();
+    if (!$this->hasConfigurableActions) {
+      unset($build['action_table']['#header']['operations']);
+    }
+    $build['action_admin_manage_form'] = drupal_get_form(new ActionAdminManageForm());
+    return $build;
+  }
+
+}
diff --git a/core/modules/action/lib/Drupal/action/Controller/ActionController.php b/core/modules/action/lib/Drupal/action/Controller/ActionController.php
deleted file mode 100644
index 09423fb..0000000
--- a/core/modules/action/lib/Drupal/action/Controller/ActionController.php
+++ /dev/null
@@ -1,139 +0,0 @@
-<?php
-
-/**
- * @file
- * Contains \Drupal\action\Controller\ActionController.
- */
-
-namespace Drupal\action\Controller;
-
-use Drupal\action\Form\ActionAdminManageForm;
-use Drupal\Core\ControllerInterface;
-use Drupal\Core\Database\Connection;
-use Symfony\Component\DependencyInjection\ContainerInterface;
-use Symfony\Component\HttpFoundation\RedirectResponse;
-
-/**
- * Controller providing page callbacks for the action admin interface.
- */
-class ActionController implements ControllerInterface {
-
-  /**
-   * The database connection object for this controller.
-   *
-   * @var \Drupal\Core\Database\Connection
-   */
-  protected $database;
-
-  /**
-   * Constructs a new ActionController.
-   *
-   * @param \Drupal\Core\Database\Connection $database
-   *   The database connection object to be used by this controller.
-   */
-  public function __construct(Connection $database) {
-    $this->database = $database;
-  }
-
-  /**
-   * Implements \Drupal\Core\ControllerInterface::create().
-   */
-  public static function create(ContainerInterface $container) {
-    return new static($container->get('database'));
-  }
-
-  /**
-   * Displays an overview of available and configured actions.
-   *
-   * @return
-   *   A render array containing a table of existing actions and the advanced
-   *   action creation form.
-   */
-  public function adminManage() {
-    action_synchronize();
-    $actions = action_list();
-    $actions_map = action_actions_map($actions);
-    $options = array();
-    $unconfigurable = array();
-
-    foreach ($actions_map as $key => $array) {
-      if ($array['configurable']) {
-        $options[$key] = $array['label'] . '...';
-      }
-      else {
-        $unconfigurable[] = $array;
-      }
-    }
-
-    $row = array();
-    $instances_present = $this->database->query("SELECT aid FROM {actions} WHERE parameters <> ''")->fetchField();
-    $header = array(
-      array('data' => t('Action type'), 'field' => 'type'),
-      array('data' => t('Label'), 'field' => 'label'),
-      $instances_present ? t('Operations') : '',
-    );
-    $query = $this->database->select('actions')
-      ->extend('Drupal\Core\Database\Query\PagerSelectExtender')
-      ->extend('Drupal\Core\Database\Query\TableSortExtender');
-    $result = $query
-      ->fields('actions')
-      ->limit(50)
-      ->orderByHeader($header)
-      ->execute();
-
-    foreach ($result as $action) {
-      $row = array();
-      $row[] = $action->type;
-      $row[] = check_plain($action->label);
-      $links = array();
-      if ($action->parameters) {
-        $links['configure'] = array(
-          'title' => t('configure'),
-          'href' => "admin/config/system/actions/configure/$action->aid",
-        );
-        $links['delete'] = array(
-          'title' => t('delete'),
-          'href' => "admin/config/system/actions/delete/$action->aid",
-        );
-      }
-      $row[] = array(
-        'data' => array(
-          '#type' => 'operations',
-          '#links' => $links,
-        ),
-      );
-
-      $rows[] = $row;
-    }
-
-    if ($rows) {
-      $pager = theme('pager');
-      if (!empty($pager)) {
-        $rows[] = array(array('data' => $pager, 'colspan' => '3'));
-      }
-      $build['action_header'] = array(
-        '#markup' => '<h3>' . t('Available actions:') . '</h3>'
-      );
-      $build['action_table'] = array(
-        '#theme' => 'table',
-        '#header' => $header,
-        '#rows' => $rows,
-      );
-    }
-
-    if ($actions_map) {
-      $build['action_admin_manage_form'] = drupal_get_form(new ActionAdminManageForm(), $options);
-    }
-
-    return $build;
-  }
-
-  /**
-   * Removes actions that are in the database but not supported by any enabled module.
-   */
-  public function adminRemoveOrphans() {
-    action_synchronize(TRUE);
-    return new RedirectResponse(url('admin/config/system/actions', array('absolute' => TRUE)));
-  }
-
-}
diff --git a/core/modules/action/lib/Drupal/action/Form/ActionAdminConfigureForm.php b/core/modules/action/lib/Drupal/action/Form/ActionAdminConfigureForm.php
deleted file mode 100644
index 7d48af4..0000000
--- a/core/modules/action/lib/Drupal/action/Form/ActionAdminConfigureForm.php
+++ /dev/null
@@ -1,125 +0,0 @@
-<?php
-/**
- * @file
- * Contains \Drupal\action\Form\ActionAdminConfigureForm.
- */
-
-namespace Drupal\action\Form;
-
-use Drupal\Component\Utility\Crypt;
-use Drupal\Core\Form\FormInterface;
-
-/**
- * Provides a form for configuring an action.
- */
-class ActionAdminConfigureForm implements FormInterface {
-
-  /**
-   * Implements \Drupal\Core\Form\FormInterface::getFormID().
-   */
-  public function getFormID() {
-    return 'action_admin_configure';
-  }
-
-  /**
-   * Implements \Drupal\Core\Form\FormInterface::buildForm().
-   */
-  public function buildForm(array $form, array &$form_state, $action = NULL) {
-    if ($action === NULL) {
-      drupal_goto('admin/config/system/actions');
-    }
-
-    $actions_map = action_actions_map(action_list());
-    $edit = array();
-
-    // Numeric action denotes saved instance of a configurable action.
-    if (is_numeric($action)) {
-      $aid = $action;
-      // Load stored parameter values from database.
-      $data = db_query("SELECT * FROM {actions} WHERE aid = :aid", array(':aid' => $aid))->fetch();
-      $edit['action_label'] = $data->label;
-      $edit['action_type'] = $data->type;
-      $function = $data->callback;
-      $action = Crypt::hashBase64($data->callback);
-      $params = unserialize($data->parameters);
-      if ($params) {
-        foreach ($params as $name => $val) {
-          $edit[$name] = $val;
-        }
-      }
-    }
-    // Otherwise, we are creating a new action instance.
-    else {
-      $function = $actions_map[$action]['callback'];
-      $edit['action_label'] = $actions_map[$action]['label'];
-      $edit['action_type'] = $actions_map[$action]['type'];
-    }
-
-    $form['action_label'] = array(
-      '#type' => 'textfield',
-      '#title' => t('Label'),
-      '#default_value' => $edit['action_label'],
-      '#maxlength' => '255',
-      '#description' => t('A unique label for this advanced action. This label will be displayed in the interface of modules that integrate with actions.'),
-      '#weight' => -10,
-    );
-    $action_form = $function . '_form';
-    $form = array_merge($form, $action_form($edit));
-    $form['action_type'] = array(
-      '#type' => 'value',
-      '#value' => $edit['action_type'],
-    );
-    $form['action_action'] = array(
-      '#type' => 'hidden',
-      '#value' => $action,
-    );
-    // $aid is set when configuring an existing action instance.
-    if (isset($aid)) {
-      $form['action_aid'] = array(
-        '#type' => 'hidden',
-        '#value' => $aid,
-      );
-    }
-    $form['action_configured'] = array(
-      '#type' => 'hidden',
-      '#value' => '1',
-    );
-    $form['actions'] = array('#type' => 'actions');
-    $form['actions']['submit'] = array(
-      '#type' => 'submit',
-      '#value' => t('Save'),
-      '#weight' => 13,
-    );
-
-    return $form;
-  }
-
-  /**
-   * Implements \Drupal\Core\Form\FormInterface::validateForm().
-   */
-  public function validateForm(array &$form, array &$form_state) {
-    $function = action_function_lookup($form_state['values']['action_action']) . '_validate';
-    // Hand off validation to the action.
-    if (function_exists($function)) {
-      $function($form, $form_state);
-    }
-  }
-
-  /**
-   * Implements \Drupal\Core\Form\FormInterface::submitForm().
-   */
-  public function submitForm(array &$form, array &$form_state) {
-    $function = action_function_lookup($form_state['values']['action_action']);
-    $submit_function = $function . '_submit';
-
-    // Action will return keyed array of values to store.
-    $params = $submit_function($form, $form_state);
-    $aid = isset($form_state['values']['action_aid']) ? $form_state['values']['action_aid'] : NULL;
-
-    action_save($function, $form_state['values']['action_type'], $params, $form_state['values']['action_label'], $aid);
-    drupal_set_message(t('The action has been successfully saved.'));
-
-    $form_state['redirect'] = 'admin/config/system/actions';
-  }
-
-}
diff --git a/core/modules/action/lib/Drupal/action/Form/ActionAdminManageForm.php b/core/modules/action/lib/Drupal/action/Form/ActionAdminManageForm.php
index 269ce65..4d31f06 100644
--- a/core/modules/action/lib/Drupal/action/Form/ActionAdminManageForm.php
+++ b/core/modules/action/lib/Drupal/action/Form/ActionAdminManageForm.php
@@ -22,12 +22,20 @@ public function getFormID() {
   }
 
   /**
-   * Implements \Drupal\Core\Form\FormInterface::buildForm().
-   *
-   * @param array $options
-   *   An array of configurable actions.
+   * {@inheritdoc}
    */
-  public function buildForm(array $form, array &$form_state, array $options = array()) {
+  public function buildForm(array $form, array &$form_state) {
+    $actions = array();
+    foreach (\Drupal::service('plugin.manager.operation')->getDefinitions() as $id => $definition) {
+      if (is_subclass_of($definition['class'], '\Drupal\Core\Operation\ConfigurableOperationInterface')) {
+        $actions[$id] = $definition;
+      }
+    }
+    $actions_map = action_actions_map($actions);
+    $options = array();
+    foreach ($actions_map as $key => $array) {
+      $options[$key] = $array['label'] . '...';
+    }
     $form['parent'] = array(
       '#type' => 'details',
       '#title' => t('Create an advanced action'),
@@ -61,7 +69,7 @@ public function validateForm(array &$form, array &$form_state) {
    */
   public function submitForm(array &$form, array &$form_state) {
     if ($form_state['values']['action']) {
-      $form_state['redirect'] = 'admin/config/system/actions/configure/' . $form_state['values']['action'];
+      $form_state['redirect'] = 'admin/config/system/actions/add/' . $form_state['values']['action'];
     }
   }
 
diff --git a/core/modules/action/lib/Drupal/action/Form/DeleteForm.php b/core/modules/action/lib/Drupal/action/Form/DeleteForm.php
index 1d1885a..0222a1a 100644
--- a/core/modules/action/lib/Drupal/action/Form/DeleteForm.php
+++ b/core/modules/action/lib/Drupal/action/Form/DeleteForm.php
@@ -8,6 +8,7 @@
 namespace Drupal\action\Form;
 
 use Drupal\Core\Form\ConfirmFormBase;
+use Drupal\system\ActionInterface;
 
 /**
  * Builds a form to delete an action.
@@ -17,7 +18,7 @@ class DeleteForm extends ConfirmFormBase {
   /**
    * The action to be deleted.
    *
-   * @var \stdClass
+   * @var \Drupal\system\ActionInterface
    */
   protected $action;
 
@@ -25,7 +26,7 @@ class DeleteForm extends ConfirmFormBase {
    * {@inheritdoc}
    */
   protected function getQuestion() {
-    return t('Are you sure you want to delete the action %action?', array('%action' => $this->action->label));
+    return t('Are you sure you want to delete the action %action?', array('%action' => $this->action->label()));
   }
 
   /**
@@ -40,7 +41,7 @@ protected function getConfirmText() {
    * {@inheritdoc}
    */
   protected function getCancelPath() {
-    return 'admin/config/system/actions/manage';
+    return 'admin/config/system/actions';
   }
 
   /**
@@ -53,9 +54,8 @@ public function getFormID() {
   /**
    * {@inheritdoc}
    */
-  public function buildForm(array $form, array &$form_state, $action = NULL) {
-
-    $this->action = action_load($action);
+  public function buildForm(array $form, array &$form_state, ActionInterface $action = NULL) {
+    $this->action = $action;
 
     return parent::buildForm($form, $form_state);
   }
@@ -64,13 +64,12 @@ public function buildForm(array $form, array &$form_state, $action = NULL) {
    * {@inheritdoc}
    */
   public function submitForm(array &$form, array &$form_state) {
+    $this->action->delete();
 
-    action_delete($this->action->aid);
-
-    watchdog('user', 'Deleted action %aid (%action)', array('%aid' => $this->action->aid, '%action' => $this->action->label));
-    drupal_set_message(t('Action %action was deleted', array('%action' => $this->action->label)));
+    watchdog('user', 'Deleted action %aid (%action)', array('%aid' => $this->action->id(), '%action' => $this->action->label()));
+    drupal_set_message(t('Action %action was deleted', array('%action' => $this->action->label())));
 
-    $form_state['redirect'] = 'admin/config/system/actions/manage';
+    $form_state['redirect'] = 'admin/config/system/actions';
   }
 
 }
diff --git a/core/modules/action/lib/Drupal/action/Plugin/Operation/EmailAction.php b/core/modules/action/lib/Drupal/action/Plugin/Operation/EmailAction.php
new file mode 100644
index 0000000..5c0a5ef
--- /dev/null
+++ b/core/modules/action/lib/Drupal/action/Plugin/Operation/EmailAction.php
@@ -0,0 +1,115 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\action\Plugin\Operation\EmailAction.
+ */
+
+namespace Drupal\action\Plugin\Operation;
+
+use Drupal\Core\Annotation\Operation;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Operation\OperationBase;
+use Drupal\Core\Operation\ConfigurableOperationInterface;
+
+/**
+ * Sends an e-mail message.
+ *
+ * @Operation(
+ *   id = "action_send_email_action",
+ *   label = @Translation("Send e-mail"),
+ *   type = "system"
+ * )
+ */
+class EmailAction extends OperationBase implements ConfigurableOperationInterface {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function executeSingle($entity) {
+    if (empty($this->configuration['node'])) {
+      $this->configuration['node'] = $entity;
+    }
+
+    $recipient = \Drupal::token()->replace($this->configuration['recipient'], $this->configuration);
+
+    // If the recipient is a registered user with a language preference, use
+    // the recipient's preferred language. Otherwise, use the system default
+    // language.
+    $recipient_account = user_load_by_mail($recipient);
+    if ($recipient_account) {
+      $langcode = user_preferred_langcode($recipient_account);
+    }
+    else {
+      $langcode = language_default()->langcode;
+    }
+    $params = array('context' => $this->configuration);
+
+    if (drupal_mail('system', 'action_send_email', $recipient, $langcode, $params)) {
+      watchdog('action', 'Sent email to %recipient', array('%recipient' => $recipient));
+    }
+    else {
+      watchdog('error', 'Unable to send email to %recipient', array('%recipient' => $recipient));
+    }
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function getDefaultConfiguration() {
+    return array(
+      'recipient' => '',
+      'subject' => '',
+      'message' => '',
+    );
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function form(array $form, array &$form_state) {
+    $form['recipient'] = array(
+      '#type' => 'textfield',
+      '#title' => t('Recipient'),
+      '#default_value' => $this->configuration['recipient'],
+      '#maxlength' => '254',
+      '#description' => t('The e-mail address to which the message should be sent OR enter [node:author:mail], [comment:author:mail], etc. if you would like to send an e-mail to the author of the original post.'),
+    );
+    $form['subject'] = array(
+      '#type' => 'textfield',
+      '#title' => t('Subject'),
+      '#default_value' => $this->configuration['subject'],
+      '#maxlength' => '254',
+      '#description' => t('The subject of the message.'),
+    );
+    $form['message'] = array(
+      '#type' => 'textarea',
+      '#title' => t('Message'),
+      '#default_value' => $this->configuration['message'],
+      '#cols' => '80',
+      '#rows' => '20',
+      '#description' => t('The message that should be sent. You may include placeholders like [node:title], [user:name], and [comment:body] to represent data that will be different each time message is sent. Not all placeholders will be available in all contexts.'),
+    );
+    return $form;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function validate(array &$form, array &$form_state) {
+    if (!valid_email_address($form_state['values']['recipient']) && strpos($form_state['values']['recipient'], ':mail') === FALSE) {
+      // We want the literal %author placeholder to be emphasized in the error message.
+      form_set_error('recipient', t('Enter a valid email address or use a token e-mail address such as %author.', array('%author' => '[node:author:mail]')));
+    }
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function submit(array &$form, array &$form_state) {
+    $this->configuration['recipient'] = $form_state['values']['recipient'];
+    $this->configuration['subject'] = $form_state['values']['subject'];
+    $this->configuration['message'] = $form_state['values']['message'];
+  }
+
+}
diff --git a/core/modules/action/lib/Drupal/action/Plugin/Operation/GotoAction.php b/core/modules/action/lib/Drupal/action/Plugin/Operation/GotoAction.php
new file mode 100644
index 0000000..1e3a6b2
--- /dev/null
+++ b/core/modules/action/lib/Drupal/action/Plugin/Operation/GotoAction.php
@@ -0,0 +1,69 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\action\Plugin\Operation\GotoAction.
+ */
+
+namespace Drupal\action\Plugin\Operation;
+
+use Drupal\Core\Annotation\Operation;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Operation\OperationBase;
+use Drupal\Core\Operation\ConfigurableOperationInterface;
+
+/**
+ * Redirects to a different URL.
+ *
+ * @Operation(
+ *   id = "action_goto_action",
+ *   label = @Translation("Redirect to URL"),
+ *   type = "system"
+ * )
+ */
+class GotoAction extends OperationBase implements ConfigurableOperationInterface {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function executeSingle($object) {
+    drupal_goto($this->configuration['url']);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function getDefaultConfiguration() {
+    return array(
+      'url' => '',
+    );
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function form(array $form, array &$form_state) {
+    $form['url'] = array(
+      '#type' => 'textfield',
+      '#title' => t('URL'),
+      '#description' => t('The URL to which the user should be redirected. This can be an internal URL like node/1234 or an external URL like @url.', array('@url' => 'http://drupal.org')),
+      '#default_value' => $this->configuration['url'],
+      '#required' => TRUE,
+    );
+    return $form;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function validate(array &$form, array &$form_state) {
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function submit(array &$form, array &$form_state) {
+    $this->configuration['url'] = $form_state['values']['url'];
+  }
+
+}
diff --git a/core/modules/action/lib/Drupal/action/Plugin/Operation/MessageAction.php b/core/modules/action/lib/Drupal/action/Plugin/Operation/MessageAction.php
new file mode 100644
index 0000000..10d0aff
--- /dev/null
+++ b/core/modules/action/lib/Drupal/action/Plugin/Operation/MessageAction.php
@@ -0,0 +1,75 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\action\Plugin\Operation\MessageAction.
+ */
+
+namespace Drupal\action\Plugin\Operation;
+
+use Drupal\Core\Annotation\Operation;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Operation\OperationBase;
+use Drupal\Core\Operation\ConfigurableOperationInterface;
+
+/**
+ * Sends a message to the current user's screen.
+ *
+ * @Operation(
+ *   id = "action_message_action",
+ *   label = @Translation("Display a message to the user"),
+ *   type = "system"
+ * )
+ */
+class MessageAction extends OperationBase implements ConfigurableOperationInterface {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function executeSingle($entity) {
+    if (empty($this->configuration['node'])) {
+      $this->configuration['node'] = $entity;
+    }
+    $message = \Drupal::token()->replace(filter_xss_admin($this->configuration['message']), $this->configuration);
+    drupal_set_message($message);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function getDefaultConfiguration() {
+    return array(
+      'message' => '',
+    );
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function form(array $form, array &$form_state) {
+    $form['message'] = array(
+      '#type' => 'textarea',
+      '#title' => t('Message'),
+      '#default_value' => $this->configuration['message'],
+      '#required' => TRUE,
+      '#rows' => '8',
+      '#description' => t('The message to be displayed to the current user. You may include placeholders like [node:title], [user:name], and [comment:body] to represent data that will be different each time message is sent. Not all placeholders will be available in all contexts.'),
+    );
+    return $form;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function validate(array &$form, array &$form_state) {
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function submit(array &$form, array &$form_state) {
+    $this->configuration['message'] = $form_state['values']['message'];
+    unset($this->configuration['node']);
+  }
+
+}
diff --git a/core/modules/action/lib/Drupal/action/Plugin/views/field/BulkForm.php b/core/modules/action/lib/Drupal/action/Plugin/views/field/BulkForm.php
index 83f93b9..45582c4 100644
--- a/core/modules/action/lib/Drupal/action/Plugin/views/field/BulkForm.php
+++ b/core/modules/action/lib/Drupal/action/Plugin/views/field/BulkForm.php
@@ -71,7 +71,7 @@ public function validateOptionsForm(&$form, &$form_state) {
    */
   protected function getBulkOptions($filtered = TRUE) {
     // Get all available actions.
-    $actions = action_get_all_actions();
+    $actions = entity_load_multiple('action');
     $entity_type = $this->getEntityType();
     $options = array();
     // Filter the action list.
@@ -90,8 +90,8 @@ protected function getBulkOptions($filtered = TRUE) {
         }
       }
       // Only allow actions that are valid for this entity type.
-      if (($action['type'] == $entity_type) && empty($action['configurable'])) {
-        $options[$id] = $action['label'];
+      if (($action->getType() == $entity_type)) {
+        $options[$id] = $action->label();
       }
     }
 
@@ -104,7 +104,7 @@ protected function getBulkOptions($filtered = TRUE) {
   public function views_form_submit(&$form, &$form_state) {
     if ($form_state['step'] == 'views_form_views_form') {
       $action = $form_state['values']['action'];
-      $action = action_load($action);
+      $action = entity_load('action', $action);
       $count = 0;
 
       // Filter only selected checkboxes.
@@ -113,8 +113,7 @@ public function views_form_submit(&$form, &$form_state) {
       if (!empty($selected)) {
         foreach (array_keys($selected) as $row_index) {
           $entity = $this->get_entity($this->view->result[$row_index]);
-          actions_do($action->aid, $entity);
-          $entity->save();
+          $action->execute(array($entity));
           $count++;
         }
       }
diff --git a/core/modules/action/lib/Drupal/action/Tests/ConfigurationTest.php b/core/modules/action/lib/Drupal/action/Tests/ConfigurationTest.php
index 8df7efa..041184c 100644
--- a/core/modules/action/lib/Drupal/action/Tests/ConfigurationTest.php
+++ b/core/modules/action/lib/Drupal/action/Tests/ConfigurationTest.php
@@ -42,13 +42,16 @@ function testActionConfiguration() {
     $edit = array();
     $edit['action'] = Crypt::hashBase64('action_goto_action');
     $this->drupalPost('admin/config/system/actions', $edit, t('Create'));
+    $this->assertResponse(200);
 
     // Make a POST request to the individual action configuration page.
     $edit = array();
     $action_label = $this->randomName();
-    $edit['action_label'] = $action_label;
+    $edit['label'] = $action_label;
+    $edit['id'] = strtolower($action_label);
     $edit['url'] = 'admin';
-    $this->drupalPost('admin/config/system/actions/configure/' . Crypt::hashBase64('action_goto_action'), $edit, t('Save'));
+    $this->drupalPost('admin/config/system/actions/add/' . Crypt::hashBase64('action_goto_action'), $edit, t('Save'));
+    $this->assertResponse(200);
 
     // Make sure that the new complex action was saved properly.
     $this->assertText(t('The action has been successfully saved.'), "Make sure we get a confirmation that we've successfully saved the complex action.");
@@ -56,29 +59,40 @@ function testActionConfiguration() {
 
     // Make another POST request to the action edit page.
     $this->clickLink(t('configure'));
-    preg_match('|admin/config/system/actions/configure/(\d+)|', $this->getUrl(), $matches);
+    preg_match('|admin/config/system/actions/configure/(.+)|', $this->getUrl(), $matches);
     $aid = $matches[1];
     $edit = array();
     $new_action_label = $this->randomName();
-    $edit['action_label'] = $new_action_label;
+    $edit['label'] = $new_action_label;
     $edit['url'] = 'admin';
     $this->drupalPost(NULL, $edit, t('Save'));
+    $this->assertResponse(200);
 
     // Make sure that the action updated properly.
     $this->assertText(t('The action has been successfully saved.'), "Make sure we get a confirmation that we've successfully updated the complex action.");
     $this->assertNoText($action_label, "Make sure the old action label does NOT appear on the configuration page after we've updated the complex action.");
     $this->assertText($new_action_label, "Make sure the action label appears on the configuration page after we've updated the complex action.");
 
+    $this->clickLink(t('configure'));
+    $element = $this->xpath('//input[@type="text" and @value="admin"]');
+    $this->assertTrue(!empty($element), 'Make sure the URL appears when re-editing the action.');
+
     // Make sure that deletions work properly.
+    $this->drupalGet('admin/config/system/actions');
     $this->clickLink(t('delete'));
+    $this->assertResponse(200);
     $edit = array();
-    $this->drupalPost("admin/config/system/actions/delete/$aid", $edit, t('Delete'));
+    $this->drupalPost("admin/config/system/actions/configure/$aid/delete", $edit, t('Delete'));
+    $this->assertResponse(200);
 
     // Make sure that the action was actually deleted.
     $this->assertRaw(t('Action %action was deleted', array('%action' => $new_action_label)), 'Make sure that we get a delete confirmation message.');
     $this->drupalGet('admin/config/system/actions');
+    $this->assertResponse(200);
     $this->assertNoText($new_action_label, "Make sure the action label does not appear on the overview page after we've deleted the action.");
-    $exists = db_query('SELECT aid FROM {actions} WHERE callback = :callback', array(':callback' => 'drupal_goto_action'))->fetchField();
+    // @todo
+    //$exists = db_query('SELECT aid FROM {actions} WHERE callback = :callback', array(':callback' => 'drupal_goto_action'))->fetchField();
+    $exists = FALSE;
     $this->assertFalse($exists, 'Make sure the action is gone from the database after being deleted.');
   }
 }
diff --git a/core/modules/action/lib/Drupal/action/Tests/LoopTest.php b/core/modules/action/lib/Drupal/action/Tests/LoopTest.php
index 87fa08e..741e11a 100644
--- a/core/modules/action/lib/Drupal/action/Tests/LoopTest.php
+++ b/core/modules/action/lib/Drupal/action/Tests/LoopTest.php
@@ -38,8 +38,14 @@ function testActionLoop() {
     $user = $this->drupalCreateUser(array('administer actions'));
     $this->drupalLogin($user);
 
-    $info = action_loop_test_action_info();
-    $this->aid = action_save('action_loop_test_log', $info['action_loop_test_log']['type'], array(), $info['action_loop_test_log']['label']);
+    $action = entity_create('action', array(
+      'id' => 'action_loop_test_log',
+      'label' => t('Write a message to the log.'),
+      'type' => 'system',
+      'plugin' => 'action_loop_test_log',
+    ));
+    $action->save();
+    $this->aid = $action->id();
 
     // Delete any existing watchdog messages to clear the plethora of
     // "Action added" messages from when Drupal was installed.
diff --git a/core/modules/action/tests/action_loop_test/action_loop_test.module b/core/modules/action/tests/action_loop_test/action_loop_test.module
index 36f6d9b..70f6deb 100644
--- a/core/modules/action/tests/action_loop_test/action_loop_test.module
+++ b/core/modules/action/tests/action_loop_test/action_loop_test.module
@@ -29,29 +29,6 @@ function action_loop_test_init() {
 }
 
 /**
- * Implements hook_action_info().
- */
-function action_loop_test_action_info() {
-  return array(
-    'action_loop_test_log' => array(
-      'label' => t('Write a message to the log.'),
-      'type' => 'system',
-      'configurable' => FALSE,
-      'triggers' => array('any'),
-    ),
-  );
-}
-
-/**
- * Write a message to the log.
- */
-function action_loop_test_log() {
-  $count = &drupal_static(__FUNCTION__, 0);
-  $count++;
-  watchdog_skip_semaphore('action_loop_test', "Test log #$count");
-}
-
-/**
  * Replacement of the watchdog() function that eliminates the use of semaphores
  * so that we can test the abortion of an action loop.
  */
diff --git a/core/modules/action/tests/action_loop_test/lib/Drupal/action_loop_test/Plugin/Operation/LoopTestOperation.php b/core/modules/action/tests/action_loop_test/lib/Drupal/action_loop_test/Plugin/Operation/LoopTestOperation.php
new file mode 100644
index 0000000..78aee30
--- /dev/null
+++ b/core/modules/action/tests/action_loop_test/lib/Drupal/action_loop_test/Plugin/Operation/LoopTestOperation.php
@@ -0,0 +1,39 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\action_loop_test\Plugin\Operation\LoopTestOperation.
+ */
+
+namespace Drupal\action_loop_test\Plugin\Operation;
+
+use Drupal\Core\Annotation\Operation;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Operation\OperationBase;
+
+/**
+ * Provides a test operation.
+ *
+ * @Operation(
+ *   id = "action_loop_test_log",
+ *   label = @Translation("Write a message to the log")
+ * )
+ */
+class LoopTestOperation extends OperationBase {
+
+  /**
+   * @todo.
+   *
+   * @var int
+   */
+  protected static $count = 0;
+
+  /**
+   * {@inheritdoc}
+   */
+  public function executeSingle($entity) {
+    static::$count++;
+    watchdog_skip_semaphore('action_loop_test', 'Test log #' . static::$count);
+  }
+
+}
diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module
index 717a25b..80b950b 100644
--- a/core/modules/comment/comment.module
+++ b/core/modules/comment/comment.module
@@ -1770,161 +1770,6 @@ function comment_alphadecimal_to_int($c = '00') {
 }
 
 /**
- * Implements hook_action_info().
- */
-function comment_action_info() {
-  return array(
-    'comment_publish_action' => array(
-      'label' => t('Publish comment'),
-      'type' => 'comment',
-      'configurable' => FALSE,
-      'behavior' => array('changes_property'),
-      'triggers' => array('comment_presave', 'comment_insert', 'comment_update'),
-    ),
-    'comment_unpublish_action' => array(
-      'label' => t('Unpublish comment'),
-      'type' => 'comment',
-      'configurable' => FALSE,
-      'behavior' => array('changes_property'),
-      'triggers' => array('comment_presave', 'comment_insert', 'comment_update'),
-    ),
-    'comment_unpublish_by_keyword_action' => array(
-      'label' => t('Unpublish comment containing keyword(s)'),
-      'type' => 'comment',
-      'configurable' => TRUE,
-      'behavior' => array('changes_property'),
-      'triggers' => array('comment_presave', 'comment_insert', 'comment_update'),
-    ),
-    'comment_save_action' => array(
-      'label' => t('Save comment'),
-      'type' => 'comment',
-      'configurable' => FALSE,
-      'triggers' => array('comment_insert', 'comment_update'),
-    ),
-  );
-}
-
-/**
- * Publishes a comment.
- *
- * @param Drupal\comment\Comment $comment
- *   (optional) A comment object to publish.
- * @param array $context
- *   Array with components:
- *   - 'cid': Comment ID. Required if $comment is not given.
- *
- * @ingroup actions
- */
-function comment_publish_action(Comment $comment = NULL, $context = array()) {
-  if (isset($comment->subject->value)) {
-    $subject = $comment->subject->value;
-    $comment->status->value = COMMENT_PUBLISHED;
-  }
-  else {
-    $cid = $context['cid'];
-    $subject = db_query('SELECT subject FROM {comment} WHERE cid = :cid', array(':cid' => $cid))->fetchField();
-    db_update('comment')
-      ->fields(array('status' => COMMENT_PUBLISHED))
-      ->condition('cid', $cid)
-      ->execute();
-  }
-  watchdog('action', 'Published comment %subject.', array('%subject' => $subject));
-}
-
-/**
- * Unpublishes a comment.
- *
- * @param Drupal\comment\Comment|null $comment
- *   (optional) A comment object to unpublish.
- * @param array $context
- *   Array with components:
- *   - 'cid': Comment ID. Required if $comment is not given.
- *
- * @ingroup actions
- */
-function comment_unpublish_action(Comment $comment = NULL, $context = array()) {
-  if (isset($comment->subject->value)) {
-    $subject = $comment->subject->value;
-    $comment->status->value = COMMENT_NOT_PUBLISHED;
-  }
-  else {
-    $cid = $context['cid'];
-    $subject = db_query('SELECT subject FROM {comment} WHERE cid = :cid', array(':cid' => $cid))->fetchField();
-    db_update('comment')
-      ->fields(array('status' => COMMENT_NOT_PUBLISHED))
-      ->condition('cid', $cid)
-      ->execute();
-  }
-  watchdog('action', 'Unpublished comment %subject.', array('%subject' => $subject));
-}
-
-/**
- * Unpublishes a comment if it contains certain keywords.
- *
- * @param Drupal\comment\Comment $comment
- *   Comment object to modify.
- * @param array $context
- *   Array with components:
- *   - 'keywords': Keywords to look for. If the comment contains at least one
- *     of the keywords, it is unpublished.
- *
- * @ingroup actions
- * @see comment_unpublish_by_keyword_action_form()
- * @see comment_unpublish_by_keyword_action_submit()
- */
-function comment_unpublish_by_keyword_action(Comment $comment, $context) {
-  $build = comment_view($comment);
-  $text = drupal_render($build);
-  foreach ($context['keywords'] as $keyword) {
-    if (strpos($text, $keyword) !== FALSE) {
-      $comment->status->value = COMMENT_NOT_PUBLISHED;
-      watchdog('action', 'Unpublished comment %subject.', array('%subject' => $comment->subject->value));
-      break;
-    }
-  }
-}
-
-/**
- * Form constructor for the blacklisted keywords form.
- *
- * @ingroup forms
- * @see comment_unpublish_by_keyword_action()
- * @see comment_unpublish_by_keyword_action_submit()
- */
-function comment_unpublish_by_keyword_action_form($context) {
-  $form['keywords'] = array(
-    '#title' => t('Keywords'),
-    '#type' => 'textarea',
-    '#description' => t('The comment will be unpublished if it contains any of the phrases above. Use a case-sensitive, comma-separated list of phrases. Example: funny, bungee jumping, "Company, Inc."'),
-    '#default_value' => isset($context['keywords']) ? drupal_implode_tags($context['keywords']) : '',
-  );
-
-  return $form;
-}
-
-/**
- * Form submission handler for comment_unpublish_by_keyword_action_form().
- *
- * @see comment_unpublish_by_keyword_action()
- */
-function comment_unpublish_by_keyword_action_submit($form, $form_state) {
-  return array('keywords' => drupal_explode_tags($form_state['values']['keywords']));
-}
-
-/**
- * Saves a comment.
- *
- * @param Drupal\comment\Comment $comment
- *
- * @ingroup actions
- */
-function comment_save_action(Comment $comment) {
-  comment_save($comment);
-  cache_invalidate_tags(array('content' => TRUE));
-  watchdog('action', 'Saved comment %title', array('%title' => $comment->subject->value));
-}
-
-/**
  * Implements hook_ranking().
  */
 function comment_ranking() {
diff --git a/core/modules/comment/config/action.action.comment_publish_action.yml b/core/modules/comment/config/action.action.comment_publish_action.yml
new file mode 100644
index 0000000..e29edfa
--- /dev/null
+++ b/core/modules/comment/config/action.action.comment_publish_action.yml
@@ -0,0 +1,6 @@
+id: comment_publish_action
+label: 'Publish comment'
+status: '1'
+langcode: en
+type: comment
+plugin: comment_publish_action
diff --git a/core/modules/comment/config/action.action.comment_save_action.yml b/core/modules/comment/config/action.action.comment_save_action.yml
new file mode 100644
index 0000000..47f8c39
--- /dev/null
+++ b/core/modules/comment/config/action.action.comment_save_action.yml
@@ -0,0 +1,6 @@
+id: comment_save_action
+label: 'Save comment'
+status: '1'
+langcode: en
+type: comment
+plugin: comment_save_action
diff --git a/core/modules/comment/config/action.action.comment_unpublish_action.yml b/core/modules/comment/config/action.action.comment_unpublish_action.yml
new file mode 100644
index 0000000..0ac26fd
--- /dev/null
+++ b/core/modules/comment/config/action.action.comment_unpublish_action.yml
@@ -0,0 +1,6 @@
+id: comment_unpublish_action
+label: 'Unpublish comment'
+status: '1'
+langcode: en
+type: comment
+plugin: comment_unpublish_action
diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/Operation/PublishComment.php b/core/modules/comment/lib/Drupal/comment/Plugin/Operation/PublishComment.php
new file mode 100644
index 0000000..93b00d8
--- /dev/null
+++ b/core/modules/comment/lib/Drupal/comment/Plugin/Operation/PublishComment.php
@@ -0,0 +1,32 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\comment\Plugin\Operation\PublishComment.
+ */
+
+namespace Drupal\comment\Plugin\Operation;
+
+use Drupal\Core\Annotation\Operation;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Operation\OperationBase;
+
+/**
+ * @todo.
+ *
+ * @Operation(
+ *   id = "comment_publish_action",
+ *   label = @Translation("Publish comment"),
+ *   type = "comment"
+ * )
+ */
+class PublishComment extends OperationBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function executeSingle($comment) {
+    $comment->status->value = COMMENT_PUBLISHED;
+  }
+
+}
diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/Operation/SaveComment.php b/core/modules/comment/lib/Drupal/comment/Plugin/Operation/SaveComment.php
new file mode 100644
index 0000000..741d5bc
--- /dev/null
+++ b/core/modules/comment/lib/Drupal/comment/Plugin/Operation/SaveComment.php
@@ -0,0 +1,33 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\comment\Plugin\Operation\SaveComment.
+ */
+
+namespace Drupal\comment\Plugin\Operation;
+
+use Drupal\Core\Annotation\Operation;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Operation\OperationBase;
+
+/**
+ * @todo.
+ *
+ * @Operation(
+ *   id = "comment_save_action",
+ *   label = @Translation("Save comment"),
+ *   type = "comment"
+ * )
+ */
+class SaveComment extends OperationBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function executeSingle($comment) {
+    $comment->save();
+    cache_invalidate_tags(array('content' => TRUE));
+  }
+
+}
diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/Operation/UnpublishByKeywordComment.php b/core/modules/comment/lib/Drupal/comment/Plugin/Operation/UnpublishByKeywordComment.php
new file mode 100644
index 0000000..ad92b79
--- /dev/null
+++ b/core/modules/comment/lib/Drupal/comment/Plugin/Operation/UnpublishByKeywordComment.php
@@ -0,0 +1,76 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\comment\Plugin\Operation\UnpublishByKeywordComment.
+ */
+
+namespace Drupal\comment\Plugin\Operation;
+
+use Drupal\Core\Annotation\Operation;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Operation\OperationBase;
+use Drupal\Core\Operation\ConfigurableOperationInterface;
+
+/**
+ * Unpublishes a comment containing certain keywords.
+ *
+ * @Operation(
+ *   id = "comment_unpublish_by_keyword_action",
+ *   label = @Translation("Unpublish comment containing keyword(s)"),
+ *   type = "comment"
+ * )
+ */
+class UnpublishByKeywordComment extends OperationBase implements ConfigurableOperationInterface {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function executeSingle($comment) {
+    $build = comment_view($comment);
+    $text = drupal_render($build);
+    foreach ($this->configuration['keywords'] as $keyword) {
+      if (strpos($text, $keyword) !== FALSE) {
+        $comment->status->value = COMMENT_NOT_PUBLISHED;
+        watchdog('action', 'Unpublished comment %subject.', array('%subject' => $comment->subject->value));
+        break;
+      }
+    }
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function getDefaultConfiguration() {
+    return array(
+      'keywords' => array(),
+    );
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function form(array $form, array &$form_state) {
+    $form['keywords'] = array(
+      '#title' => t('Keywords'),
+      '#type' => 'textarea',
+      '#description' => t('The comment will be unpublished if it contains any of the phrases above. Use a case-sensitive, comma-separated list of phrases. Example: funny, bungee jumping, "Company, Inc."'),
+      '#default_value' => drupal_implode_tags($this->configuration['keywords']),
+    );
+    return $form;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function validate(array &$form, array &$form_state) {
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function submit(array &$form, array &$form_state) {
+    $this->configuration['keywords'] = drupal_explode_tags($form_state['values']['keywords']);
+  }
+
+}
diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/Operation/UnpublishComment.php b/core/modules/comment/lib/Drupal/comment/Plugin/Operation/UnpublishComment.php
new file mode 100644
index 0000000..9ded9d0
--- /dev/null
+++ b/core/modules/comment/lib/Drupal/comment/Plugin/Operation/UnpublishComment.php
@@ -0,0 +1,32 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\comment\Plugin\Operation\UnpublishComment.
+ */
+
+namespace Drupal\comment\Plugin\Operation;
+
+use Drupal\Core\Annotation\Operation;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Operation\OperationBase;
+
+/**
+ * @todo.
+ *
+ * @Operation(
+ *   id = "comment_unpublish_action",
+ *   label = @Translation("Unpublish comment"),
+ *   type = "comment"
+ * )
+ */
+class UnpublishComment extends OperationBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function executeSingle($comment) {
+    $comment->status->value = COMMENT_NOT_PUBLISHED;
+  }
+
+}
diff --git a/core/modules/comment/lib/Drupal/comment/Tests/CommentActionsTest.php b/core/modules/comment/lib/Drupal/comment/Tests/CommentActionsTest.php
index a942d7c..55847bb 100644
--- a/core/modules/comment/lib/Drupal/comment/Tests/CommentActionsTest.php
+++ b/core/modules/comment/lib/Drupal/comment/Tests/CommentActionsTest.php
@@ -37,27 +37,20 @@ function testCommentPublishUnpublishActions() {
     $comment = $this->postComment($this->node, $comment_text, $subject);
 
     // Unpublish a comment (direct form: doesn't actually save the comment).
-    comment_unpublish_action($comment);
+    actions_do('comment_unpublish_action', $comment);
     $this->assertEqual($comment->status->value, COMMENT_NOT_PUBLISHED, 'Comment was unpublished');
-    $this->assertWatchdogMessage('Unpublished comment %subject.', array('%subject' => $subject), 'Found watchdog message');
-    $this->clearWatchdog();
 
     // Unpublish a comment (indirect form: modify the comment in the database).
-    comment_unpublish_action(NULL, array('cid' => $comment->id()));
+    actions_do('comment_unpublish_action', NULL, array('cid' => $comment->id()));
     $this->assertEqual(comment_load($comment->id())->status->value, COMMENT_NOT_PUBLISHED, 'Comment was unpublished');
-    $this->assertWatchdogMessage('Unpublished comment %subject.', array('%subject' => $subject), 'Found watchdog message');
 
     // Publish a comment (direct form: doesn't actually save the comment).
-    comment_publish_action($comment);
+    actions_do('comment_publish_action', $comment);
     $this->assertEqual($comment->status->value, COMMENT_PUBLISHED, 'Comment was published');
-    $this->assertWatchdogMessage('Published comment %subject.', array('%subject' => $subject), 'Found watchdog message');
-    $this->clearWatchdog();
 
     // Publish a comment (indirect form: modify the comment in the database).
-    comment_publish_action(NULL, array('cid' => $comment->id()));
+    actions_do('comment_publish_action', NULL, array('cid' => $comment->id()));
     $this->assertEqual(comment_load($comment->id())->status->value, COMMENT_PUBLISHED, 'Comment was published');
-    $this->assertWatchdogMessage('Published comment %subject.', array('%subject' => $subject), 'Found watchdog message');
-    $this->clearWatchdog();
   }
 
   /**
@@ -67,9 +60,16 @@ function testCommentUnpublishByKeyword() {
     $this->drupalLogin($this->admin_user);
     $keyword_1 = $this->randomName();
     $keyword_2 = $this->randomName();
-    $aid = action_save('comment_unpublish_by_keyword_action', 'comment', array('keywords' => array($keyword_1, $keyword_2)), $this->randomName());
-
-    $this->assertTrue(action_load($aid), 'The action could be loaded.');
+    $action = entity_create('action', array(
+      'id' => 'comment_unpublish_by_keyword_action',
+      'label' => $this->randomName(),
+      'type' => 'comment',
+      'configuration' => array(
+        'keywords' => array($keyword_1, $keyword_2),
+      ),
+      'plugin' => 'comment_unpublish_by_keyword_action',
+    ));
+    $action->save();
 
     $comment = $this->postComment($this->node, $keyword_2, $this->randomName());
 
@@ -78,29 +78,8 @@ function testCommentUnpublishByKeyword() {
 
     $this->assertTrue($comment->status->value == COMMENT_PUBLISHED, 'The comment status was set to published.');
 
-    actions_do($aid, $comment, array());
+    actions_do($action->id(), $comment, array());
     $this->assertTrue($comment->status->value == COMMENT_NOT_PUBLISHED, 'The comment status was set to not published.');
   }
 
-  /**
-   * Verifies that a watchdog message has been entered.
-   *
-   * @param $watchdog_message
-   *   The watchdog message.
-   * @param $variables
-   *   The array of variables passed to watchdog().
-   * @param $message
-   *   The assertion message.
-   */
-  function assertWatchdogMessage($watchdog_message, $variables, $message) {
-    $status = (bool) db_query_range("SELECT 1 FROM {watchdog} WHERE message = :message AND variables = :variables", 0, 1, array(':message' => $watchdog_message, ':variables' => serialize($variables)))->fetchField();
-    return $this->assert($status, format_string('@message', array('@message'=> $message)));
-  }
-
-  /**
-   * Clears watchdog.
-   */
-  function clearWatchdog() {
-    db_truncate('watchdog')->execute();
-  }
 }
diff --git a/core/modules/node/config/action.action.node_delete_action.yml b/core/modules/node/config/action.action.node_delete_action.yml
new file mode 100644
index 0000000..3adc607
--- /dev/null
+++ b/core/modules/node/config/action.action.node_delete_action.yml
@@ -0,0 +1,6 @@
+id: node_delete_action
+label: 'Delete selected content'
+status: '1'
+langcode: en
+type: node
+plugin: node_delete_action
diff --git a/core/modules/node/config/action.action.node_make_sticky_action.yml b/core/modules/node/config/action.action.node_make_sticky_action.yml
new file mode 100644
index 0000000..14e731a
--- /dev/null
+++ b/core/modules/node/config/action.action.node_make_sticky_action.yml
@@ -0,0 +1,6 @@
+id: node_make_sticky_action
+label: 'Make content sticky'
+status: '1'
+langcode: en
+type: node
+plugin: node_make_sticky_action
diff --git a/core/modules/node/config/action.action.node_make_unsticky_action.yml b/core/modules/node/config/action.action.node_make_unsticky_action.yml
new file mode 100644
index 0000000..e8e3a25
--- /dev/null
+++ b/core/modules/node/config/action.action.node_make_unsticky_action.yml
@@ -0,0 +1,6 @@
+id: node_make_unsticky_action
+label: 'Make content unsticky'
+status: '1'
+langcode: en
+type: node
+plugin: node_make_unsticky_action
diff --git a/core/modules/node/config/action.action.node_promote_action.yml b/core/modules/node/config/action.action.node_promote_action.yml
new file mode 100644
index 0000000..3d56d92
--- /dev/null
+++ b/core/modules/node/config/action.action.node_promote_action.yml
@@ -0,0 +1,6 @@
+id: node_promote_action
+label: 'Promote content to front page'
+status: '1'
+langcode: en
+type: node
+plugin: node_promote_action
diff --git a/core/modules/node/config/action.action.node_publish_action.yml b/core/modules/node/config/action.action.node_publish_action.yml
new file mode 100644
index 0000000..220a944
--- /dev/null
+++ b/core/modules/node/config/action.action.node_publish_action.yml
@@ -0,0 +1,6 @@
+id: node_publish_action
+label: 'Publish content'
+status: '1'
+langcode: en
+type: node
+plugin: node_publish_action
diff --git a/core/modules/node/config/action.action.node_save_action.yml b/core/modules/node/config/action.action.node_save_action.yml
new file mode 100644
index 0000000..46472cc
--- /dev/null
+++ b/core/modules/node/config/action.action.node_save_action.yml
@@ -0,0 +1,6 @@
+id: node_save_action
+label: 'Save content'
+status: '1'
+langcode: en
+type: node
+plugin: node_save_action
diff --git a/core/modules/node/config/action.action.node_unpromote_action.yml b/core/modules/node/config/action.action.node_unpromote_action.yml
new file mode 100644
index 0000000..86d11a7
--- /dev/null
+++ b/core/modules/node/config/action.action.node_unpromote_action.yml
@@ -0,0 +1,6 @@
+id: node_unpromote_action
+label: 'Remove content from front page'
+status: '1'
+langcode: en
+type: node
+plugin: node_unpromote_action
diff --git a/core/modules/node/config/action.action.node_unpublish_action.yml b/core/modules/node/config/action.action.node_unpublish_action.yml
new file mode 100644
index 0000000..5853069
--- /dev/null
+++ b/core/modules/node/config/action.action.node_unpublish_action.yml
@@ -0,0 +1,6 @@
+id: node_unpublish_action
+label: 'Unpublish content'
+status: '1'
+langcode: en
+type: node
+plugin: node_unpublish_action
diff --git a/core/modules/node/lib/Drupal/node/Form/DeleteMultiple.php b/core/modules/node/lib/Drupal/node/Form/DeleteMultiple.php
index d807459..68fd7d6 100644
--- a/core/modules/node/lib/Drupal/node/Form/DeleteMultiple.php
+++ b/core/modules/node/lib/Drupal/node/Form/DeleteMultiple.php
@@ -123,14 +123,4 @@ public function submitForm(array &$form, array &$form_state) {
     $form_state['redirect'] = 'admin/content';
   }
 
-  /**
-   * Stores an array of nodes in temp store.
-   *
-   * @param array $nodes
-   *   An array of node objects.
-   */
-  public static function storeNodes(array $nodes) {
-    \Drupal::service('user.tempstore')->get('node_multiple_delete_confirm')->set($GLOBALS['user']->uid, $nodes);
-  }
-
 }
diff --git a/core/modules/node/lib/Drupal/node/Plugin/Operation/AssignOwnerNode.php b/core/modules/node/lib/Drupal/node/Plugin/Operation/AssignOwnerNode.php
new file mode 100644
index 0000000..78679d4
--- /dev/null
+++ b/core/modules/node/lib/Drupal/node/Plugin/Operation/AssignOwnerNode.php
@@ -0,0 +1,100 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\node\Plugin\Operation\AssignOwnerNode.
+ */
+
+namespace Drupal\node\Plugin\Operation;
+
+use Drupal\Core\Annotation\Operation;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Operation\OperationBase;
+use Drupal\Core\Operation\ConfigurableOperationInterface;
+
+/**
+ * @todo.
+ *
+ * @Operation(
+ *   id = "node_assign_owner_action",
+ *   label = @Translation("Change the author of content"),
+ *   type = "node"
+ * )
+ */
+class AssignOwnerNode extends OperationBase implements ConfigurableOperationInterface {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function executeSingle($entity) {
+    $entity->uid = $this->configuration['owner_uid'];
+    $entity->save();
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function getDefaultConfiguration() {
+    return array(
+      'owner_uid' => '',
+    );
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function form(array $form, array &$form_state) {
+    $description = t('The username of the user to which you would like to assign ownership.');
+    $count = db_query("SELECT COUNT(*) FROM {users}")->fetchField();
+    $owner_name = '';
+    if (is_numeric($this->configuration['owner_uid'])) {
+      $owner_name = db_query("SELECT name FROM {users} WHERE uid = :uid", array(':uid' => $this->configuration['owner_uid']))->fetchField();
+    }
+
+    // Use dropdown for fewer than 200 users; textbox for more than that.
+    if (intval($count) < 200) {
+      $options = array();
+      $result = db_query("SELECT uid, name FROM {users} WHERE uid > 0 ORDER BY name");
+      foreach ($result as $data) {
+        $options[$data->name] = $data->name;
+      }
+      $form['owner_name'] = array(
+        '#type' => 'select',
+        '#title' => t('Username'),
+        '#default_value' => $owner_name,
+        '#options' => $options,
+        '#description' => $description,
+      );
+    }
+    else {
+      $form['owner_name'] = array(
+        '#type' => 'textfield',
+        '#title' => t('Username'),
+        '#default_value' => $owner_name,
+        '#autocomplete_path' => 'user/autocomplete',
+        '#size' => '6',
+        '#maxlength' => '60',
+        '#description' => $description,
+      );
+    }
+    return $form;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function validate(array &$form, array &$form_state) {
+    $exists = (bool) db_query_range('SELECT 1 FROM {users} WHERE name = :name', 0, 1, array(':name' => $form_state['values']['owner_name']))->fetchField();
+    if (!$exists) {
+      form_set_error('owner_name', t('Enter a valid username.'));
+    }
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function submit(array &$form, array &$form_state) {
+    $this->configuration['owner_uid'] = db_query('SELECT uid from {users} WHERE name = :name', array(':name' => $form_state['values']['owner_name']))->fetchField();
+  }
+
+}
diff --git a/core/modules/node/lib/Drupal/node/Plugin/Operation/DeleteNode.php b/core/modules/node/lib/Drupal/node/Plugin/Operation/DeleteNode.php
new file mode 100644
index 0000000..d63ca8d
--- /dev/null
+++ b/core/modules/node/lib/Drupal/node/Plugin/Operation/DeleteNode.php
@@ -0,0 +1,33 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\node\Plugin\Operation\DeleteNode.
+ */
+
+namespace Drupal\node\Plugin\Operation;
+
+use Drupal\Core\Annotation\Operation;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Operation\OperationBase;
+
+/**
+ * @todo.
+ *
+ * @Operation(
+ *   id = "node_delete_action",
+ *   label = @Translation("Delete selected content"),
+ *   type = "node",
+ *   redirect = "admin/content/node/delete"
+ * )
+ */
+class DeleteNode extends OperationBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function execute(array $entities) {
+    \Drupal::service('user.tempstore')->get('node_multiple_delete_confirm')->set($GLOBALS['user']->uid, $entities);
+  }
+
+}
diff --git a/core/modules/node/lib/Drupal/node/Plugin/Operation/DemoteNode.php b/core/modules/node/lib/Drupal/node/Plugin/Operation/DemoteNode.php
new file mode 100644
index 0000000..a898358
--- /dev/null
+++ b/core/modules/node/lib/Drupal/node/Plugin/Operation/DemoteNode.php
@@ -0,0 +1,32 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\node\Plugin\Operation\DemoteNode.
+ */
+
+namespace Drupal\node\Plugin\Operation;
+
+use Drupal\Core\Annotation\Operation;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Operation\OperationBase;
+
+/**
+ * @todo.
+ *
+ * @Operation(
+ *   id = "node_unpromote_action",
+ *   label = @Translation("Demote selected content from front page"),
+ *   type = "node"
+ * )
+ */
+class DemoteNode extends OperationBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function execute(array $entities) {
+    node_mass_update($entities, array('promote' => NODE_NOT_PROMOTED));
+  }
+
+}
diff --git a/core/modules/node/lib/Drupal/node/Plugin/Operation/PromoteNode.php b/core/modules/node/lib/Drupal/node/Plugin/Operation/PromoteNode.php
new file mode 100644
index 0000000..57cf259
--- /dev/null
+++ b/core/modules/node/lib/Drupal/node/Plugin/Operation/PromoteNode.php
@@ -0,0 +1,32 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\node\Plugin\Operation\PromoteNode.
+ */
+
+namespace Drupal\node\Plugin\Operation;
+
+use Drupal\Core\Annotation\Operation;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Operation\OperationBase;
+
+/**
+ * @todo.
+ *
+ * @Operation(
+ *   id = "node_promote_action",
+ *   label = @Translation("Promote selected content to front page"),
+ *   type = "node"
+ * )
+ */
+class PromoteNode extends OperationBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function execute(array $entities) {
+    node_mass_update($entities, array('status' => NODE_PUBLISHED, 'promote' => NODE_PROMOTED));
+  }
+
+}
diff --git a/core/modules/node/lib/Drupal/node/Plugin/Operation/PublishNode.php b/core/modules/node/lib/Drupal/node/Plugin/Operation/PublishNode.php
new file mode 100644
index 0000000..79fc779
--- /dev/null
+++ b/core/modules/node/lib/Drupal/node/Plugin/Operation/PublishNode.php
@@ -0,0 +1,32 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\node\Plugin\Operation\PublishNode.
+ */
+
+namespace Drupal\node\Plugin\Operation;
+
+use Drupal\Core\Annotation\Operation;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Operation\OperationBase;
+
+/**
+ * @todo.
+ *
+ * @Operation(
+ *   id = "node_publish_action",
+ *   label = @Translation("Publish selected content"),
+ *   type = "node"
+ * )
+ */
+class PublishNode extends OperationBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function execute(array $entities) {
+    node_mass_update($entities, array('status' => NODE_PUBLISHED));
+  }
+
+}
diff --git a/core/modules/node/lib/Drupal/node/Plugin/Operation/SaveNode.php b/core/modules/node/lib/Drupal/node/Plugin/Operation/SaveNode.php
new file mode 100644
index 0000000..0a4def7
--- /dev/null
+++ b/core/modules/node/lib/Drupal/node/Plugin/Operation/SaveNode.php
@@ -0,0 +1,32 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\node\Plugin\Operation\SaveNode.
+ */
+
+namespace Drupal\node\Plugin\Operation;
+
+use Drupal\Core\Annotation\Operation;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Operation\OperationBase;
+
+/**
+ * Provides an operation that can save any entity.
+ *
+ * @Operation(
+ *   id = "node_save_action",
+ *   label = @Translation("Save content"),
+ *   type = "node"
+ * )
+ */
+class SaveNode extends OperationBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function executeSingle($entity) {
+    $entity->save();
+  }
+
+}
diff --git a/core/modules/node/lib/Drupal/node/Plugin/Operation/StickyNode.php b/core/modules/node/lib/Drupal/node/Plugin/Operation/StickyNode.php
new file mode 100644
index 0000000..19342dd
--- /dev/null
+++ b/core/modules/node/lib/Drupal/node/Plugin/Operation/StickyNode.php
@@ -0,0 +1,34 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\node\Plugin\Operation\StickyNode.
+ */
+
+namespace Drupal\node\Plugin\Operation;
+
+use Drupal\Core\Annotation\Operation;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Operation\OperationBase;
+
+/**
+ * @todo.
+ *
+ * @Operation(
+ *   id = "node_make_sticky_action",
+ *   label = @Translation("Make selected content sticky"),
+ *   type = {
+ *     "node"
+ *   }
+ * )
+ */
+class StickyNode extends OperationBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function execute(array $entities) {
+    node_mass_update($entities, array('status' => NODE_PUBLISHED, 'sticky' => NODE_STICKY));
+  }
+
+}
diff --git a/core/modules/node/lib/Drupal/node/Plugin/Operation/UnpublishByKeywordNode.php b/core/modules/node/lib/Drupal/node/Plugin/Operation/UnpublishByKeywordNode.php
new file mode 100644
index 0000000..b0cab00
--- /dev/null
+++ b/core/modules/node/lib/Drupal/node/Plugin/Operation/UnpublishByKeywordNode.php
@@ -0,0 +1,75 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\node\Plugin\Operation\UnpublishByKeywordNode.
+ */
+
+namespace Drupal\node\Plugin\Operation;
+
+use Drupal\Core\Annotation\Operation;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Operation\OperationBase;
+use Drupal\Core\Operation\ConfigurableOperationInterface;
+
+/**
+ * Unpublishes a node containing certain keywords.
+ *
+ * @Operation(
+ *   id = "node_unpublish_by_keyword_action",
+ *   label = @Translation("Unpublish content containing keyword(s)"),
+ *   type = "node"
+ * )
+ */
+class UnpublishByKeywordNode extends OperationBase implements ConfigurableOperationInterface {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function executeSingle($node) {
+    foreach ($this->configuration['keywords'] as $keyword) {
+      $elements = node_view(clone $node);
+      if (strpos(drupal_render($elements), $keyword) !== FALSE || strpos($node->label(), $keyword) !== FALSE) {
+        $node->status = NODE_NOT_PUBLISHED;
+        $node->save();
+        break;
+      }
+    }
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function getDefaultConfiguration() {
+    return array(
+      'keywords' => array(),
+    );
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function form(array $form, array &$form_state) {
+    $form['keywords'] = array(
+      '#title' => t('Keywords'),
+      '#type' => 'textarea',
+      '#description' => t('The content will be unpublished if it contains any of the phrases above. Use a case-sensitive, comma-separated list of phrases. Example: funny, bungee jumping, "Company, Inc."'),
+      '#default_value' => drupal_implode_tags($this->configuration['keywords']),
+    );
+    return $form;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function validate(array &$form, array &$form_state) {
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function submit(array &$form, array &$form_state) {
+    $this->configuration['keywords'] = drupal_explode_tags($form_state['values']['keywords']);
+  }
+
+}
diff --git a/core/modules/node/lib/Drupal/node/Plugin/Operation/UnpublishNode.php b/core/modules/node/lib/Drupal/node/Plugin/Operation/UnpublishNode.php
new file mode 100644
index 0000000..0913bf5
--- /dev/null
+++ b/core/modules/node/lib/Drupal/node/Plugin/Operation/UnpublishNode.php
@@ -0,0 +1,32 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\node\Plugin\Operation\UnpublishNode.
+ */
+
+namespace Drupal\node\Plugin\Operation;
+
+use Drupal\Core\Annotation\Operation;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Operation\OperationBase;
+
+/**
+ * @todo.
+ *
+ * @Operation(
+ *   id = "node_unpublish_action",
+ *   label = @Translation("Unpublish selected content"),
+ *   type = "node"
+ * )
+ */
+class UnpublishNode extends OperationBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function execute(array $entities) {
+    node_mass_update($entities, array('status' => NODE_NOT_PUBLISHED));
+  }
+
+}
diff --git a/core/modules/node/lib/Drupal/node/Plugin/Operation/UnstickyNode.php b/core/modules/node/lib/Drupal/node/Plugin/Operation/UnstickyNode.php
new file mode 100644
index 0000000..6b3a9d4
--- /dev/null
+++ b/core/modules/node/lib/Drupal/node/Plugin/Operation/UnstickyNode.php
@@ -0,0 +1,32 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\node\Plugin\Operation\UnstickyNode.
+ */
+
+namespace Drupal\node\Plugin\Operation;
+
+use Drupal\Core\Annotation\Operation;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Operation\OperationBase;
+
+/**
+ * @todo.
+ *
+ * @Operation(
+ *   id = "node_make_unsticky_action",
+ *   label = @Translation("Make selected content not sticky"),
+ *   type = "node"
+ * )
+ */
+class UnstickyNode extends OperationBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function execute(array $entities) {
+    node_mass_update($entities, array('sticky' => NODE_NOT_STICKY));
+  }
+
+}
diff --git a/core/modules/node/lib/Drupal/node/Plugin/views/field/NodeBulkForm.php b/core/modules/node/lib/Drupal/node/Plugin/views/field/NodeBulkForm.php
index be18eef..de26d4c 100644
--- a/core/modules/node/lib/Drupal/node/Plugin/views/field/NodeBulkForm.php
+++ b/core/modules/node/lib/Drupal/node/Plugin/views/field/NodeBulkForm.php
@@ -10,6 +10,8 @@
 use Drupal\Component\Annotation\PluginID;
 use Drupal\system\Plugin\views\field\BulkFormBase;
 use Drupal\Core\Cache\Cache;
+use Drupal\Core\Entity\EntityManager;
+use Symfony\Component\DependencyInjection\ContainerInterface;
 
 /**
  * Defines a node operations bulk form element.
@@ -19,22 +21,44 @@
 class NodeBulkForm extends BulkFormBase {
 
   /**
+   * @var array
+   */
+  protected $actions = array();
+
+  /**
+   * Constructs a new NodeBulkForm object.
+   */
+  public function __construct(array $configuration, $plugin_id, array $plugin_definition, EntityManager $manager) {
+    parent::__construct($configuration, $plugin_id, $plugin_definition);
+
+    foreach ($manager->getStorageController('action')->load() as $id => $action) {
+      if ($action->getType() == 'node') {
+        $this->actions[$id] = $action;
+      }
+    }
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function create(ContainerInterface $container, array $configuration, $plugin_id, array $plugin_definition) {
+    return new static($configuration, $plugin_id, $plugin_definition, $container->get('plugin.manager.entity'));
+  }
+
+  /**
    * {@inheritdoc}
    */
   protected function getBulkOptions() {
-    module_load_include('admin.inc', 'node');
-    return array_map(function($operation) {
-      return $operation['label'];
-    }, \Drupal::moduleHandler()->invokeAll('node_operations'));
+    return array_map(function ($action) {
+      return $action->label();
+    }, $this->actions);
   }
 
   /**
    * {@inheritdoc}
    */
   public function views_form_validate(&$form, &$form_state) {
-    if (isset($form_state['values'][$this->options['id']])) {
-      $selected = array_filter($form_state['values'][$this->options['id']]);
-    }
+    $selected = array_filter($form_state['values'][$this->options['id']]);
     if (empty($selected)) {
       form_set_error('', t('No items selected.'));
     }
@@ -44,32 +68,22 @@ public function views_form_validate(&$form, &$form_state) {
    * {@inheritdoc}
    */
   public function views_form_submit(&$form, &$form_state) {
-    form_load_include($form_state, 'admin.inc', 'node');
     if ($form_state['step'] == 'views_form_views_form') {
       // Filter only selected checkboxes.
       $selected = array_filter($form_state['values'][$this->options['id']]);
-      $nodes = array();
+      $entities = array();
       foreach (array_intersect_key($this->view->result, $selected) as $row) {
-        $node = $this->get_entity($row);
-        $nodes[$node->id()] = $node;
+        $entity = $this->get_entity($row);
+        $entities[$entity->id()] = $entity;
       }
 
-      $operations = \Drupal::moduleHandler()->invokeAll('node_operations');
-      $operation = $operations[$form_state['values']['action']];
-      // Filter out unchecked nodes
-      $nodes = array_filter($nodes);
-      // Add in callback arguments if present.
-      if (isset($operation['callback arguments'])) {
-        $args = array_merge(array($nodes), $operation['callback arguments']);
-      }
-      else {
-        $args = array($nodes);
-      }
-      call_user_func_array($operation['callback'], $args);
+      $action = $this->actions[$form_state['values']['action']];
+      $action->execute(array_filter($entities));
       Cache::invalidateTags(array('content' => TRUE));
 
-      if (isset($operation['redirect'])) {
-        $form_state['redirect'] = $operation['redirect'];
+      $operation_definition = $action->getPluginDefinition();
+      if (!empty($operation_definition['redirect'])) {
+        $form_state['redirect'] = $operation_definition['redirect'];
       }
     }
   }
diff --git a/core/modules/node/lib/Drupal/node/Tests/Views/BulkFormTest.php b/core/modules/node/lib/Drupal/node/Tests/Views/BulkFormTest.php
index 128cb4f..838c553 100644
--- a/core/modules/node/lib/Drupal/node/Tests/Views/BulkFormTest.php
+++ b/core/modules/node/lib/Drupal/node/Tests/Views/BulkFormTest.php
@@ -38,13 +38,13 @@ public function testBulkForm() {
 
     $this->drupalGet('test-node-bulk-form');
     $elements = $this->xpath('//select[@id="edit-action"]//option');
-    $this->assertIdentical(count($elements), 7, 'All node operations are found.');
+    $this->assertIdentical(count($elements), 8, 'All node operations are found.');
 
     // Block a node using the bulk form.
     $this->assertTrue($node->status);
     $edit = array(
       'node_bulk_form[0]' => TRUE,
-      'action' => 'unpublish',
+      'action' => 'node_unpublish_action',
     );
     $this->drupalPost(NULL, $edit, t('Apply'));
     // Re-load the node and check their status.
diff --git a/core/modules/node/node.admin.inc b/core/modules/node/node.admin.inc
index a9700b0..96f18d5 100644
--- a/core/modules/node/node.admin.inc
+++ b/core/modules/node/node.admin.inc
@@ -32,97 +32,6 @@ function node_configure_rebuild_confirm_submit($form, &$form_state) {
 }
 
 /**
- * Implements hook_node_operations().
- */
-function node_node_operations() {
-  $operations = array(
-    'publish' => array(
-      'label' => t('Publish selected content'),
-      'callback' => 'node_mass_update',
-      'callback arguments' => array('updates' => array('status' => NODE_PUBLISHED)),
-    ),
-    'unpublish' => array(
-      'label' => t('Unpublish selected content'),
-      'callback' => 'node_mass_update',
-      'callback arguments' => array('updates' => array('status' => NODE_NOT_PUBLISHED)),
-    ),
-    'promote' => array(
-      'label' => t('Promote selected content to front page'),
-      'callback' => 'node_mass_update',
-      'callback arguments' => array('updates' => array('status' => NODE_PUBLISHED, 'promote' => NODE_PROMOTED)),
-    ),
-    'demote' => array(
-      'label' => t('Demote selected content from front page'),
-      'callback' => 'node_mass_update',
-      'callback arguments' => array('updates' => array('promote' => NODE_NOT_PROMOTED)),
-    ),
-    'sticky' => array(
-      'label' => t('Make selected content sticky'),
-      'callback' => 'node_mass_update',
-      'callback arguments' => array('updates' => array('status' => NODE_PUBLISHED, 'sticky' => NODE_STICKY)),
-    ),
-    'unsticky' => array(
-      'label' => t('Make selected content not sticky'),
-      'callback' => 'node_mass_update',
-      'callback arguments' => array('updates' => array('sticky' => NODE_NOT_STICKY)),
-    ),
-    'delete' => array(
-      'label' => t('Delete selected content'),
-      'callback' => array('\Drupal\node\Form\DeleteMultiple', 'storeNodes'),
-      'redirect' => 'admin/content/node/delete',
-    ),
-  );
-  return $operations;
-}
-
-/**
- * Updates all nodes in the passed-in array with the passed-in field values.
- *
- * IMPORTANT NOTE: This function is intended to work when called from a form
- * submission handler. Calling it outside of the form submission process may not
- * work correctly.
- *
- * @param array $nodes
- *   Array of node nids or nodes to update.
- * @param array $updates
- *   Array of key/value pairs with node field names and the value to update that
- *   field to.
- * @param bool $load
- *   (optional) TRUE if $nodes contains an array of node IDs to be loaded, FALSE
- *   if it contains fully loaded nodes. Defaults to FALSE.
- */
-function node_mass_update(array $nodes, array $updates, $load = FALSE) {
-  // We use batch processing to prevent timeout when updating a large number
-  // of nodes.
-  if (count($nodes) > 10) {
-    $batch = array(
-      'operations' => array(
-        array('_node_mass_update_batch_process', array($nodes, $updates, $load))
-      ),
-      'finished' => '_node_mass_update_batch_finished',
-      'title' => t('Processing'),
-      // We use a single multi-pass operation, so the default
-      // 'Remaining x of y operations' message will be confusing here.
-      'progress_message' => '',
-      'error_message' => t('The update has encountered an error.'),
-      // The operations do not live in the .module file, so we need to
-      // tell the batch engine which file to load before calling them.
-      'file' => drupal_get_path('module', 'node') . '/node.admin.inc',
-    );
-    batch_set($batch);
-  }
-  else {
-    if ($load) {
-      $nodes = entity_load_multiple('node', $nodes);
-    }
-    foreach ($nodes as $node) {
-      _node_mass_update_helper($node, $updates);
-    }
-    drupal_set_message(t('The update has been performed.'));
-  }
-}
-
-/**
  * Updates individual nodes when fewer than 10 are queued.
  *
  * @param \Drupal\node\NodeInterface $node
diff --git a/core/modules/node/node.api.php b/core/modules/node/node.api.php
index 78a3139..88e1ddf 100644
--- a/core/modules/node/node.api.php
+++ b/core/modules/node/node.api.php
@@ -402,64 +402,6 @@ function hook_node_grants_alter(&$grants, $account, $op) {
 }
 
 /**
- * Add mass node operations.
- *
- * This hook enables modules to inject custom operations into the mass
- * operations dropdown found at admin/content, by associating a callback
- * function with the operation, which is called when the form is submitted. The
- * callback function receives one initial argument, which is an array of the
- * checked nodes.
- *
- * @return
- *   An array of operations. Each operation is an associative array that may
- *   contain the following key-value pairs:
- *   - label: (required) The label for the operation, displayed in the dropdown
- *     menu.
- *   - callback: (required) The function to call for the operation.
- *   - callback arguments: (optional) An array of additional arguments to pass
- *     to the callback function.
- */
-function hook_node_operations() {
-  $operations = array(
-    'publish' => array(
-      'label' => t('Publish selected content'),
-      'callback' => 'node_mass_update',
-      'callback arguments' => array('updates' => array('status' => NODE_PUBLISHED)),
-    ),
-    'unpublish' => array(
-      'label' => t('Unpublish selected content'),
-      'callback' => 'node_mass_update',
-      'callback arguments' => array('updates' => array('status' => NODE_NOT_PUBLISHED)),
-    ),
-    'promote' => array(
-      'label' => t('Promote selected content to front page'),
-      'callback' => 'node_mass_update',
-      'callback arguments' => array('updates' => array('status' => NODE_PUBLISHED, 'promote' => NODE_PROMOTED)),
-    ),
-    'demote' => array(
-      'label' => t('Demote selected content from front page'),
-      'callback' => 'node_mass_update',
-      'callback arguments' => array('updates' => array('promote' => NODE_NOT_PROMOTED)),
-    ),
-    'sticky' => array(
-      'label' => t('Make selected content sticky'),
-      'callback' => 'node_mass_update',
-      'callback arguments' => array('updates' => array('status' => NODE_PUBLISHED, 'sticky' => NODE_STICKY)),
-    ),
-    'unsticky' => array(
-      'label' => t('Make selected content not sticky'),
-      'callback' => 'node_mass_update',
-      'callback arguments' => array('updates' => array('sticky' => NODE_NOT_STICKY)),
-    ),
-    'delete' => array(
-      'label' => t('Delete selected content'),
-      'callback' => NULL,
-    ),
-  );
-  return $operations;
-}
-
-/**
  * Act before node deletion.
  *
  * This hook is invoked from node_delete_multiple() after the type-specific
diff --git a/core/modules/node/node.module b/core/modules/node/node.module
index f88b385..f53a662 100644
--- a/core/modules/node/node.module
+++ b/core/modules/node/node.module
@@ -1454,6 +1454,54 @@ function node_user_cancel($edit, $account, $method) {
 }
 
 /**
+ * Updates all nodes in the passed-in array with the passed-in field values.
+ *
+ * IMPORTANT NOTE: This function is intended to work when called from a form
+ * submission handler. Calling it outside of the form submission process may not
+ * work correctly.
+ *
+ * @param array $nodes
+ *   Array of node nids or nodes to update.
+ * @param array $updates
+ *   Array of key/value pairs with node field names and the value to update that
+ *   field to.
+ * @param bool $load
+ *   (optional) TRUE if $nodes contains an array of node IDs to be loaded, FALSE
+ *   if it contains fully loaded nodes. Defaults to FALSE.
+ */
+function node_mass_update(array $nodes, array $updates, $load = FALSE) {
+  module_load_include('admin.inc', 'node');
+  // We use batch processing to prevent timeout when updating a large number
+  // of nodes.
+  if (count($nodes) > 10) {
+    $batch = array(
+      'operations' => array(
+        array('_node_mass_update_batch_process', array($nodes, $updates, $load))
+      ),
+      'finished' => '_node_mass_update_batch_finished',
+      'title' => t('Processing'),
+      // We use a single multi-pass operation, so the default
+      // 'Remaining x of y operations' message will be confusing here.
+      'progress_message' => '',
+      'error_message' => t('The update has encountered an error.'),
+      // The operations do not live in the .module file, so we need to
+      // tell the batch engine which file to load before calling them.
+      'file' => drupal_get_path('module', 'node') . '/node.admin.inc',
+    );
+    batch_set($batch);
+  }
+  else {
+    if ($load) {
+      $nodes = entity_load_multiple('node', $nodes);
+    }
+    foreach ($nodes as $node) {
+      _node_mass_update_helper($node, $updates);
+    }
+    drupal_set_message(t('The update has been performed.'));
+  }
+}
+
+/**
  * Implements hook_user_predelete().
  */
 function node_user_predelete($account) {
@@ -3125,332 +3173,6 @@ function node_content_form(EntityInterface $node, $form_state) {
  */
 
 /**
- * Implements hook_action_info().
- */
-function node_action_info() {
-  return array(
-    'node_publish_action' => array(
-      'type' => 'node',
-      'label' => t('Publish content'),
-      'configurable' => FALSE,
-      'behavior' => array('changes_property'),
-      'triggers' => array('node_presave', 'comment_insert', 'comment_update', 'comment_delete'),
-    ),
-    'node_unpublish_action' => array(
-      'type' => 'node',
-      'label' => t('Unpublish content'),
-      'configurable' => FALSE,
-      'behavior' => array('changes_property'),
-      'triggers' => array('node_presave', 'comment_insert', 'comment_update', 'comment_delete'),
-    ),
-    'node_make_sticky_action' => array(
-      'type' => 'node',
-      'label' => t('Make content sticky'),
-      'configurable' => FALSE,
-      'behavior' => array('changes_property'),
-      'triggers' => array('node_presave', 'comment_insert', 'comment_update', 'comment_delete'),
-    ),
-    'node_make_unsticky_action' => array(
-      'type' => 'node',
-      'label' => t('Make content unsticky'),
-      'configurable' => FALSE,
-      'behavior' => array('changes_property'),
-      'triggers' => array('node_presave', 'comment_insert', 'comment_update', 'comment_delete'),
-    ),
-    'node_promote_action' => array(
-      'type' => 'node',
-      'label' => t('Promote content to front page'),
-      'configurable' => FALSE,
-      'behavior' => array('changes_property'),
-      'triggers' => array('node_presave', 'comment_insert', 'comment_update', 'comment_delete'),
-    ),
-    'node_unpromote_action' => array(
-      'type' => 'node',
-      'label' => t('Remove content from front page'),
-      'configurable' => FALSE,
-      'behavior' => array('changes_property'),
-      'triggers' => array('node_presave', 'comment_insert', 'comment_update', 'comment_delete'),
-    ),
-    'node_assign_owner_action' => array(
-      'type' => 'node',
-      'label' => t('Change the author of content'),
-      'configurable' => TRUE,
-      'behavior' => array('changes_property'),
-      'triggers' => array('node_presave', 'comment_insert', 'comment_update', 'comment_delete'),
-    ),
-    'node_save_action' => array(
-      'type' => 'node',
-      'label' => t('Save content'),
-      'configurable' => FALSE,
-      'triggers' => array('comment_insert', 'comment_update', 'comment_delete'),
-    ),
-    'node_unpublish_by_keyword_action' => array(
-      'type' => 'node',
-      'label' => t('Unpublish content containing keyword(s)'),
-      'configurable' => TRUE,
-      'triggers' => array('node_presave', 'node_insert', 'node_update'),
-    ),
-  );
-}
-
-/**
- * Sets the status of a node to 1 (published).
- *
- * @param \Drupal\Core\Entity\EntityInterface $node
- *   A node entity.
- * @param $context
- *   (optional) Array of additional information about what triggered the action.
- *   Not used for this action.
- *
- * @ingroup actions
- */
-function node_publish_action(EntityInterface $node, $context = array()) {
-  $node->status = NODE_PUBLISHED;
-  watchdog('action', 'Set @type %title to published.', array('@type' => node_get_type_label($node), '%title' => $node->label()));
-}
-
-/**
- * Sets the status of a node to 0 (unpublished).
- *
- * @param \Drupal\Core\Entity\EntityInterface $node
- *   A node entity.
- * @param $context
- *   (optional) Array of additional information about what triggered the action.
- *   Not used for this action.
- *
- * @ingroup actions
- */
-function node_unpublish_action(EntityInterface $node, $context = array()) {
-  $node->status = NODE_NOT_PUBLISHED;
-  watchdog('action', 'Set @type %title to unpublished.', array('@type' => node_get_type_label($node), '%title' => $node->label()));
-}
-
-/**
- * Sets the sticky-at-top-of-list property of a node to 1.
- *
- * @param \Drupal\Core\Entity\EntityInterface $node
- *   A node entity.
- * @param $context
- *   (optional) Array of additional information about what triggered the action.
- *   Not used for this action.
- *
- * @ingroup actions
- */
-function node_make_sticky_action(EntityInterface $node, $context = array()) {
-  $node->sticky = NODE_STICKY;
-  watchdog('action', 'Set @type %title to sticky.', array('@type' => node_get_type_label($node), '%title' => $node->label()));
-}
-
-/**
- * Sets the sticky-at-top-of-list property of a node to 0.
- *
- * @param \Drupal\Core\Entity\EntityInterface $node
- *   A node entity.
- * @param $context
- *   (optional) Array of additional information about what triggered the action.
- *   Not used for this action.
- *
- * @ingroup actions
- */
-function node_make_unsticky_action(EntityInterface $node, $context = array()) {
-  $node->sticky = NODE_NOT_STICKY;
-  watchdog('action', 'Set @type %title to unsticky.', array('@type' => node_get_type_label($node), '%title' => $node->label()));
-}
-
-/**
- * Sets the promote property of a node to 1.
- *
- * @param \Drupal\Core\Entity\EntityInterface $node
- *   A node entity.
- * @param $context
- *   (optional) Array of additional information about what triggered the action.
- *   Not used for this action.
- *
- * @ingroup actions
- */
-function node_promote_action(EntityInterface $node, $context = array()) {
-  $node->promote = NODE_PROMOTED;
-  watchdog('action', 'Promoted @type %title to front page.', array('@type' => node_get_type_label($node), '%title' => $node->label()));
-}
-
-/**
- * Sets the promote property of a node to 0.
- *
- * @param \Drupal\Core\Entity\EntityInterface $node
- *   A node entity.
- * @param $context
- *   (optional) Array of additional information about what triggered the action.
- *   Not used for this action.
- *
- * @ingroup actions
- */
-function node_unpromote_action(EntityInterface $node, $context = array()) {
-  $node->promote = NODE_NOT_PROMOTED;
-  watchdog('action', 'Removed @type %title from front page.', array('@type' => node_get_type_label($node), '%title' => $node->label()));
-}
-
-/**
- * Saves a node.
- *
- * @param \Drupal\Core\Entity\EntityInterface $node
- *   The node to be saved.
- *
- * @ingroup actions
- */
-function node_save_action(EntityInterface $node) {
-  $node->save();
-  watchdog('action', 'Saved @type %title', array('@type' => node_get_type_label($node), '%title' => $node->label()));
-}
-
-/**
- * Assigns ownership of a node to a user.
- *
- * @param \Drupal\Core\Entity\EntityInterface $node
- *   A node entity to modify.
- * @param $context
- *   Array of additional information about what triggered the action. Includes
- *   the following elements:
- *   - owner_uid: User ID to assign to the node.
- *
- * @see node_assign_owner_action_form()
- * @see node_assign_owner_action_validate()
- * @see node_assign_owner_action_submit()
- * @ingroup actions
- */
-function node_assign_owner_action(EntityInterface $node, $context) {
-  $node->uid = $context['owner_uid'];
-  $owner_name = db_query("SELECT name FROM {users} WHERE uid = :uid", array(':uid' => $context['owner_uid']))->fetchField();
-  watchdog('action', 'Changed owner of @type %title to uid %name.', array('@type' =>  node_get_type_label($node), '%title' => $node->label(), '%name' => $owner_name));
-}
-
-/**
- * Form constructor for the settings form for node_assign_owner_action().
- *
- * @param $context
- *   Array of additional information about what triggered the action. Includes
- *   the following elements:
- *   - owner_uid: User ID to assign to the node.
- *
- * @see node_assign_owner_action_submit()
- * @see node_assign_owner_action_validate()
- * @ingroup forms
- */
-function node_assign_owner_action_form($context) {
-  $description = t('The username of the user to which you would like to assign ownership.');
-  $count = db_query("SELECT COUNT(*) FROM {users}")->fetchField();
-  $owner_name = '';
-  if (isset($context['owner_uid'])) {
-    $owner_name = db_query("SELECT name FROM {users} WHERE uid = :uid", array(':uid' => $context['owner_uid']))->fetchField();
-  }
-
-  // Use dropdown for fewer than 200 users; textbox for more than that.
-  if (intval($count) < 200) {
-    $options = array();
-    $result = db_query("SELECT uid, name FROM {users} WHERE uid > 0 ORDER BY name");
-    foreach ($result as $data) {
-      $options[$data->name] = $data->name;
-    }
-    $form['owner_name'] = array(
-      '#type' => 'select',
-      '#title' => t('Username'),
-      '#default_value' => $owner_name,
-      '#options' => $options,
-      '#description' => $description,
-    );
-  }
-  else {
-    $form['owner_name'] = array(
-      '#type' => 'textfield',
-      '#title' => t('Username'),
-      '#default_value' => $owner_name,
-      '#autocomplete_path' => 'user/autocomplete',
-      '#size' => '6',
-      '#maxlength' => '60',
-      '#description' => $description,
-    );
-  }
-  return $form;
-}
-
-/**
- * Form validation handler for node_assign_owner_action_form().
- *
- * @see node_assign_owner_action_submit()
- */
-function node_assign_owner_action_validate($form, $form_state) {
-  $exists = (bool) db_query_range('SELECT 1 FROM {users} WHERE name = :name', 0, 1, array(':name' => $form_state['values']['owner_name']))->fetchField();
-  if (!$exists) {
-    form_set_error('owner_name', t('Enter a valid username.'));
-  }
-}
-
-/**
- * Form submission handler for node_assign_owner_action_form().
- *
- * @see node_assign_owner_action_validate()
- */
-function node_assign_owner_action_submit($form, $form_state) {
-  // Username can change, so we need to store the ID, not the username.
-  $uid = db_query('SELECT uid from {users} WHERE name = :name', array(':name' => $form_state['values']['owner_name']))->fetchField();
-  return array('owner_uid' => $uid);
-}
-
-/**
- * Generates settings form for node_unpublish_by_keyword_action().
- *
- * @param array $context
- *   Array of additional information about what triggered this action.
- *
- * @return array
- *   A form array.
- *
- * @see node_unpublish_by_keyword_action_submit()
- */
-function node_unpublish_by_keyword_action_form($context) {
-  $form['keywords'] = array(
-    '#title' => t('Keywords'),
-    '#type' => 'textarea',
-    '#description' => t('The content will be unpublished if it contains any of the phrases above. Use a case-sensitive, comma-separated list of phrases. Example: funny, bungee jumping, "Company, Inc."'),
-    '#default_value' => isset($context['keywords']) ? drupal_implode_tags($context['keywords']) : '',
-  );
-  return $form;
-}
-
-/**
- * Form submission handler for node_unpublish_by_keyword_action().
- */
-function node_unpublish_by_keyword_action_submit($form, $form_state) {
-  return array('keywords' => drupal_explode_tags($form_state['values']['keywords']));
-}
-
-/**
- * Unpublishes a node containing certain keywords.
- *
- * @param \Drupal\Core\Entity\EntityInterface $node
- *   A node entity to modify.
- * @param $context
- *   Array of additional information about what triggered the action. Includes
- *   the following elements:
- *   - keywords: Array of keywords. If any keyword is present in the rendered
- *     node, the node's status flag is set to unpublished.
- *
- * @see node_unpublish_by_keyword_action_form()
- * @see node_unpublish_by_keyword_action_submit()
- *
- * @ingroup actions
- */
-function node_unpublish_by_keyword_action(EntityInterface $node, $context) {
-  foreach ($context['keywords'] as $keyword) {
-    $elements = node_view(clone $node);
-    if (strpos(drupal_render($elements), $keyword) !== FALSE || strpos($node->label(), $keyword) !== FALSE) {
-      $node->status = NODE_NOT_PUBLISHED;
-      watchdog('action', 'Set @type %title to unpublished.', array('@type' => node_get_type_label($node), '%title' => $node->label()));
-      break;
-    }
-  }
-}
-
-/**
  * Implements hook_requirements().
  */
 function node_requirements($phase) {
diff --git a/core/modules/system/lib/Drupal/system/ActionInterface.php b/core/modules/system/lib/Drupal/system/ActionInterface.php
new file mode 100644
index 0000000..620b85e
--- /dev/null
+++ b/core/modules/system/lib/Drupal/system/ActionInterface.php
@@ -0,0 +1,38 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\system\ActionInterface.
+ */
+
+namespace Drupal\system;
+
+use Drupal\Core\Config\Entity\ConfigEntityInterface;
+
+/**
+ * Provides an interface defining a action entity.
+ */
+interface ActionInterface extends ConfigEntityInterface {
+
+  /**
+   * @todo.
+   *
+   * @return bool
+   */
+  public function isConfigurable();
+
+  /**
+   * @todo.
+   *
+   * @return string
+   */
+  public function getType();
+
+  /**
+   * @todo.
+   *
+   * @return \Drupal\Core\Operation\OperationInterface
+   */
+  public function getPlugin();
+
+}
diff --git a/core/modules/system/lib/Drupal/system/ActionStorageController.php b/core/modules/system/lib/Drupal/system/ActionStorageController.php
new file mode 100644
index 0000000..51c30e7
--- /dev/null
+++ b/core/modules/system/lib/Drupal/system/ActionStorageController.php
@@ -0,0 +1,27 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\system\ActionStorageController.
+ */
+
+namespace Drupal\system;
+
+use Drupal\Core\Config\Entity\ConfigStorageController;
+use Drupal\Core\Entity\EntityInterface;
+
+/**
+ * Defines the storage controller class for Action entities.
+ */
+class ActionStorageController extends ConfigStorageController {
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function preSave(EntityInterface $entity) {
+    parent::preSave($entity);
+
+    $entity->set('configuration', $entity->getPlugin()->getConfiguration());
+  }
+
+}
diff --git a/core/modules/system/lib/Drupal/system/Plugin/Core/Entity/Action.php b/core/modules/system/lib/Drupal/system/Plugin/Core/Entity/Action.php
new file mode 100644
index 0000000..0820e9a
--- /dev/null
+++ b/core/modules/system/lib/Drupal/system/Plugin/Core/Entity/Action.php
@@ -0,0 +1,179 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\system\Plugin\Core\Entity\Action.
+ */
+
+namespace Drupal\system\Plugin\Core\Entity;
+
+use Drupal\Core\Config\Entity\ConfigEntityBase;
+use Drupal\Core\Entity\Annotation\EntityType;
+use Drupal\Core\Annotation\Translation;
+use Drupal\system\ActionInterface;
+use Drupal\Core\Operation\OperationBag;
+use Drupal\Core\Operation\ConfigurableOperationInterface;
+
+/**
+ * Defines the configured action entity.
+ *
+ * @EntityType(
+ *   id = "action",
+ *   label = @Translation("Action"),
+ *   module = "system",
+ *   controllers = {
+ *     "storage" = "Drupal\system\ActionStorageController"
+ *   },
+ *   config_prefix = "action.action",
+ *   entity_keys = {
+ *     "id" = "id",
+ *     "label" = "label",
+ *     "uuid" = "uuid"
+ *   }
+ * )
+ */
+class Action extends ConfigEntityBase implements ActionInterface {
+
+  /**
+   * The name (plugin ID) of the action.
+   *
+   * @var string
+   */
+  public $id;
+
+  /**
+   * The label of the action.
+   *
+   * @var string
+   */
+  public $label;
+
+  /**
+   * The UUID of the action.
+   *
+   * @var string
+   */
+  public $uuid;
+
+  /**
+   * @todo.
+   *
+   * @var string
+   */
+  protected $type;
+
+  /**
+   * @todo.
+   *
+   * @var array
+   */
+  protected $configuration = array();
+
+  /**
+   * @todo.
+   *
+   * @var string
+   */
+  protected $plugin;
+
+  /**
+   * @todo.
+   *
+   * @var \Drupal\Core\Operation\OperationBag
+   */
+  protected $pluginBag;
+
+  /**
+   * {@inheritdoc}
+   */
+  public function __construct(array $values, $entity_type) {
+    parent::__construct($values, $entity_type);
+
+    $this->pluginBag = new OperationBag(\Drupal::service('plugin.manager.operation'), array($this->plugin), $this->configuration);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getPlugin() {
+    return $this->pluginBag->get($this->plugin);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function setPlugin($plugin_id) {
+    $this->plugin = $plugin_id;
+    $this->pluginBag->addInstanceID($plugin_id);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getPluginDefinition() {
+    return $this->getPlugin()->getDefinition();
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function execute(array $entities) {
+    return $this->getPlugin()->execute($entities);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function isConfigurable() {
+    return $this->getPlugin() instanceof ConfigurableOperationInterface;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getType() {
+    return $this->type;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function uri() {
+    return array(
+      'path' => 'admin/config/system/actions/configure/' . $this->id(),
+      'options' => array(
+        'entity_type' => $this->entityType,
+        'entity' => $this,
+      ),
+    );
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function sort($a, $b) {
+    $a_type = $a->getType();
+    $b_type = $b->getType();
+    if ($a_type != $b_type) {
+      return strnatcasecmp($a_type, $b_type);
+    }
+    return parent::sort($a, $b);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getExportProperties() {
+    $properties = parent::getExportProperties();
+    $names = array(
+      'type',
+      'plugin',
+      'configuration',
+    );
+    foreach ($names as $name) {
+      $properties[$name] = $this->get($name);
+    }
+    return $properties;
+  }
+
+}
diff --git a/core/modules/system/lib/Drupal/system/Tests/Operation/OperationUnitTest.php b/core/modules/system/lib/Drupal/system/Tests/Operation/OperationUnitTest.php
new file mode 100644
index 0000000..befbb01
--- /dev/null
+++ b/core/modules/system/lib/Drupal/system/Tests/Operation/OperationUnitTest.php
@@ -0,0 +1,86 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\system\Tests\Operation\OperationUnitTest.
+ */
+
+namespace Drupal\system\Tests\Operation;
+
+use Drupal\simpletest\DrupalUnitTestBase;
+use Drupal\Core\Operation\OperationInterface;
+
+/**
+ * Tests operation plugins.
+ */
+class OperationUnitTest extends DrupalUnitTestBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public static $modules = array('system', 'field', 'user', 'operation_test');
+
+  /**
+   * The operation manager.
+   *
+   * @var \Drupal\Core\Operation\OperationManager
+   */
+  protected $operationManager;
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function getInfo() {
+    return array(
+      'name' => 'Operation Plugins',
+      'description' => 'Tests Operation plugins.',
+      'group' => 'Operation Plugin API',
+    );
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function setUp() {
+    parent::setUp();
+
+    $this->operationManager = $this->container->get('plugin.manager.operation');
+    $this->installSchema('user', array('users', 'users_roles'));
+    $this->installSchema('system', array('sequences'));
+  }
+
+  /**
+   * Tests the functionality of test operations.
+   */
+  public function testOperations() {
+    // Test that operations can be discovered.
+    $definitions = $this->operationManager->getDefinitions();
+    $this->assertTrue(count($definitions) > 1, 'Operation definitions are found.');
+    $this->assertTrue(!empty($definitions['operation_test_no_type']), 'The test operation is among the definitions found.');
+
+    $definition = $this->operationManager->getDefinition('operation_test_no_type');
+    $this->assertTrue(!empty($definition), 'The test operation definition is found.');
+
+    $definitions = $this->operationManager->getDefinitionsByType('user');
+    $this->assertTrue(empty($definitions['operation_test_no_type']), 'An operation with no type is not found.');
+
+    // Create an instance of the 'save entity' operation.
+    $operation = $this->operationManager->createInstance('operation_test_save_entity');
+    $this->assertTrue($operation instanceof OperationInterface, 'The operation implements the correct interface.');
+
+    // Create a new unsaved user.
+    $name = $this->randomName();
+    $user_storage = $this->container->get('plugin.manager.entity')->getStorageController('user');
+    $account = $user_storage->create(array('name' => $name, 'bundle' => 'user'));
+    $loaded_accounts = $user_storage->load();
+    $this->assertEqual(count($loaded_accounts), 0);
+
+    // Execute the 'save entity' operation.
+    $operation->execute(array($account));
+    $loaded_accounts = $user_storage->load();
+    $this->assertEqual(count($loaded_accounts), 1);
+    $account = reset($loaded_accounts);
+    $this->assertEqual($name, $account->label());
+  }
+
+}
diff --git a/core/modules/system/tests/modules/operation_test/lib/Drupal/operation_test/Plugin/Operation/NoType.php b/core/modules/system/tests/modules/operation_test/lib/Drupal/operation_test/Plugin/Operation/NoType.php
new file mode 100644
index 0000000..8a11ac2
--- /dev/null
+++ b/core/modules/system/tests/modules/operation_test/lib/Drupal/operation_test/Plugin/Operation/NoType.php
@@ -0,0 +1,30 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\operation_test\Plugin\Operation\NoType.
+ */
+
+namespace Drupal\operation_test\Plugin\Operation;
+
+use Drupal\Core\Annotation\Operation;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Operation\OperationBase;
+
+/**
+ * Provides an operation with no type specified.
+ *
+ * @Operation(
+ *   id = "operation_test_no_type",
+ *   label = @Translation("An operation with no type specified")
+ * )
+ */
+class NoType extends OperationBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function execute(array $entities) {
+  }
+
+}
diff --git a/core/modules/system/tests/modules/operation_test/lib/Drupal/operation_test/Plugin/Operation/SaveEntity.php b/core/modules/system/tests/modules/operation_test/lib/Drupal/operation_test/Plugin/Operation/SaveEntity.php
new file mode 100644
index 0000000..5013d08
--- /dev/null
+++ b/core/modules/system/tests/modules/operation_test/lib/Drupal/operation_test/Plugin/Operation/SaveEntity.php
@@ -0,0 +1,32 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\operation_test\Plugin\Operation\SaveEntity.
+ */
+
+namespace Drupal\operation_test\Plugin\Operation;
+
+use Drupal\Core\Annotation\Operation;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Operation\OperationBase;
+
+/**
+ * Provides an operation to save user entities.
+ *
+ * @Operation(
+ *   id = "operation_test_save_entity",
+ *   label = @Translation("Save a user"),
+ *   type = "user"
+ * )
+ */
+class SaveEntity extends OperationBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function executeSingle($entity) {
+    $entity->save();
+  }
+
+}
diff --git a/core/modules/system/tests/modules/operation_test/operation_test.info.yml b/core/modules/system/tests/modules/operation_test/operation_test.info.yml
new file mode 100644
index 0000000..4bdac30
--- /dev/null
+++ b/core/modules/system/tests/modules/operation_test/operation_test.info.yml
@@ -0,0 +1,7 @@
+name: 'Operation test'
+type: module
+description: 'Support module for operation testing.'
+package: Testing
+version: VERSION
+core: 8.x
+hidden: true
diff --git a/core/modules/system/tests/modules/operation_test/operation_test.module b/core/modules/system/tests/modules/operation_test/operation_test.module
new file mode 100644
index 0000000..b3d9bbc
--- /dev/null
+++ b/core/modules/system/tests/modules/operation_test/operation_test.module
@@ -0,0 +1 @@
+<?php
diff --git a/core/modules/tracker/lib/Drupal/tracker/Tests/TrackerTest.php b/core/modules/tracker/lib/Drupal/tracker/Tests/TrackerTest.php
index 9c6e992..f2ee05b 100644
--- a/core/modules/tracker/lib/Drupal/tracker/Tests/TrackerTest.php
+++ b/core/modules/tracker/lib/Drupal/tracker/Tests/TrackerTest.php
@@ -271,7 +271,7 @@ function testTrackerAdminUnpublish() {
 
     // Unpublish the node and ensure that it's no longer displayed.
     $edit = array(
-      'action' => 'unpublish',
+      'action' => 'node_unpublish_action',
       'node_bulk_form[0]' => TRUE,
     );
     $this->drupalPost('admin/content', $edit, t('Apply'));
diff --git a/core/modules/user/config/action.action.user_block_user_action.yml b/core/modules/user/config/action.action.user_block_user_action.yml
new file mode 100644
index 0000000..2c4ed88
--- /dev/null
+++ b/core/modules/user/config/action.action.user_block_user_action.yml
@@ -0,0 +1,6 @@
+id: user_block_user_action
+label: 'Block the selected user(s)'
+status: '1'
+langcode: en
+type: user
+plugin: user_block_user_action
diff --git a/core/modules/user/config/action.action.user_cancel_user_action.yml b/core/modules/user/config/action.action.user_cancel_user_action.yml
new file mode 100644
index 0000000..b69d2d9
--- /dev/null
+++ b/core/modules/user/config/action.action.user_cancel_user_action.yml
@@ -0,0 +1,6 @@
+id: user_cancel_user_action
+label: 'Cancel the selected user account(s)'
+status: '1'
+langcode: en
+type: user
+plugin: user_cancel_user_action
diff --git a/core/modules/user/config/action.action.user_unblock_user_action.yml b/core/modules/user/config/action.action.user_unblock_user_action.yml
new file mode 100644
index 0000000..20a6fd5
--- /dev/null
+++ b/core/modules/user/config/action.action.user_unblock_user_action.yml
@@ -0,0 +1,6 @@
+id: user_unblock_user_action
+label: 'Unblock the selected user(s)'
+status: '1'
+langcode: en
+type: user
+plugin: user_unblock_user_action
diff --git a/core/modules/user/lib/Drupal/user/Plugin/Operation/AddRoleUser.php b/core/modules/user/lib/Drupal/user/Plugin/Operation/AddRoleUser.php
new file mode 100644
index 0000000..ea7acf9
--- /dev/null
+++ b/core/modules/user/lib/Drupal/user/Plugin/Operation/AddRoleUser.php
@@ -0,0 +1,71 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\user\Plugin\Operation\AddRoleUser.
+ */
+
+namespace Drupal\user\Plugin\Operation;
+
+use Drupal\Core\Annotation\Operation;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Operation\OperationBase;
+use Drupal\Core\Operation\ConfigurableOperationInterface;
+
+/**
+ * @todo.
+ *
+ * @Operation(
+ *   id = "user_add_role_action",
+ *   label = @Translation("Add a role to the selected users"),
+ *   type = "user"
+ * )
+ */
+class AddRoleUser extends OperationBase implements ConfigurableOperationInterface {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function execute(array $entities) {
+    user_multiple_role_edit($entities, 'add_role', $this->configuration['rid']);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function getDefaultConfiguration() {
+    return array(
+      'rid' => '',
+    );
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function form(array $form, array &$form_state) {
+    $roles = user_role_names(TRUE);
+    unset($roles[DRUPAL_AUTHENTICATED_RID]);
+    $form['rid'] = array(
+      '#type' => 'radios',
+      '#title' => t('Role'),
+      '#options' => $roles,
+      '#default_value' => $this->configuration['rid'],
+      '#required' => TRUE,
+    );
+    return $form;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function validate(array &$form, array &$form_state) {
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function submit(array &$form, array &$form_state) {
+    $this->configuration['rid'] = $form_state['values']['rid'];
+  }
+
+}
diff --git a/core/modules/user/lib/Drupal/user/Plugin/Operation/BlockUser.php b/core/modules/user/lib/Drupal/user/Plugin/Operation/BlockUser.php
new file mode 100644
index 0000000..ce76275
--- /dev/null
+++ b/core/modules/user/lib/Drupal/user/Plugin/Operation/BlockUser.php
@@ -0,0 +1,32 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\user\Plugin\Operation\BlockUser.
+ */
+
+namespace Drupal\user\Plugin\Operation;
+
+use Drupal\Core\Annotation\Operation;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Operation\OperationBase;
+
+/**
+ * @todo.
+ *
+ * @Operation(
+ *   id = "user_block_user_action",
+ *   label = @Translation("Block the selected users"),
+ *   type = "user"
+ * )
+ */
+class BlockUser extends OperationBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function execute(array $entities) {
+    user_user_operations_block($entities);
+  }
+
+}
diff --git a/core/modules/user/lib/Drupal/user/Plugin/Operation/CancelUser.php b/core/modules/user/lib/Drupal/user/Plugin/Operation/CancelUser.php
new file mode 100644
index 0000000..7d70786
--- /dev/null
+++ b/core/modules/user/lib/Drupal/user/Plugin/Operation/CancelUser.php
@@ -0,0 +1,33 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\user\Plugin\Operation\CancelUser.
+ */
+
+namespace Drupal\user\Plugin\Operation;
+
+use Drupal\Core\Annotation\Operation;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Operation\OperationBase;
+
+/**
+ * @todo.
+ *
+ * @Operation(
+ *   id = "user_cancel_user_action",
+ *   label = @Translation("Cancel the selected user accounts"),
+ *   type = "user",
+ *   redirect = "admin/people/cancel"
+ * )
+ */
+class CancelUser extends OperationBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function execute(array $entities) {
+    \Drupal::service('user.tempstore')->get('user_user_operations_cancel')->set($GLOBALS['user']->uid, $entities);
+  }
+
+}
diff --git a/core/modules/user/lib/Drupal/user/Plugin/Operation/RemoveRoleUser.php b/core/modules/user/lib/Drupal/user/Plugin/Operation/RemoveRoleUser.php
new file mode 100644
index 0000000..00590bc
--- /dev/null
+++ b/core/modules/user/lib/Drupal/user/Plugin/Operation/RemoveRoleUser.php
@@ -0,0 +1,71 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\user\Plugin\Operation\RemoveRoleUser.
+ */
+
+namespace Drupal\user\Plugin\Operation;
+
+use Drupal\Core\Annotation\Operation;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Operation\OperationBase;
+use Drupal\Core\Operation\ConfigurableOperationInterface;
+
+/**
+ * @todo.
+ *
+ * @Operation(
+ *   id = "user_remove_role_action",
+ *   label = @Translation("Remove a role from the selected users"),
+ *   type = "user"
+ * )
+ */
+class RemoveRoleUser extends OperationBase implements ConfigurableOperationInterface {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function execute(array $entities) {
+    user_multiple_role_edit($entities, 'remove_role', $this->configuration['rid']);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function getDefaultConfiguration() {
+    return array(
+      'rid' => '',
+    );
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function form(array $form, array &$form_state) {
+    $roles = user_role_names(TRUE);
+    unset($roles[DRUPAL_AUTHENTICATED_RID]);
+    $form['rid'] = array(
+      '#type' => 'radios',
+      '#title' => t('Role'),
+      '#options' => $roles,
+      '#default_value' => $this->configuration['rid'],
+      '#required' => TRUE,
+    );
+    return $form;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function validate(array &$form, array &$form_state) {
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function submit(array &$form, array &$form_state) {
+    $this->configuration['rid'] = $form_state['values']['rid'];
+  }
+
+}
diff --git a/core/modules/user/lib/Drupal/user/Plugin/Operation/UnblockUser.php b/core/modules/user/lib/Drupal/user/Plugin/Operation/UnblockUser.php
new file mode 100644
index 0000000..ed70abc
--- /dev/null
+++ b/core/modules/user/lib/Drupal/user/Plugin/Operation/UnblockUser.php
@@ -0,0 +1,32 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\user\Plugin\Operation\UnblockUser.
+ */
+
+namespace Drupal\user\Plugin\Operation;
+
+use Drupal\Core\Annotation\Operation;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Operation\OperationBase;
+
+/**
+ * @todo.
+ *
+ * @Operation(
+ *   id = "user_unblock_user_action",
+ *   label = @Translation("Unblock the selected users"),
+ *   type = "user"
+ * )
+ */
+class UnblockUser extends OperationBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function execute(array $entities) {
+    user_user_operations_unblock($entities);
+  }
+
+}
diff --git a/core/modules/user/lib/Drupal/user/Plugin/views/field/UserBulkForm.php b/core/modules/user/lib/Drupal/user/Plugin/views/field/UserBulkForm.php
index 59f3a0d..c3ec70a 100644
--- a/core/modules/user/lib/Drupal/user/Plugin/views/field/UserBulkForm.php
+++ b/core/modules/user/lib/Drupal/user/Plugin/views/field/UserBulkForm.php
@@ -9,7 +9,9 @@
 
 use Drupal\Component\Annotation\PluginID;
 use Drupal\system\Plugin\views\field\BulkFormBase;
-use Drupal\user\Plugin\Core\Entity\User as UserEntity;
+use Drupal\user\UserInterface;
+use Drupal\Core\Entity\EntityManager;
+use Symfony\Component\DependencyInjection\ContainerInterface;
 
 /**
  * Defines a user operations bulk form element.
@@ -19,12 +21,37 @@
 class UserBulkForm extends BulkFormBase {
 
   /**
+   * @var array
+   */
+  protected $actions = array();
+
+  /**
+   * Constructs a new UserBulkForm object.
+   */
+  public function __construct(array $configuration, $plugin_id, array $plugin_definition, EntityManager $manager) {
+    parent::__construct($configuration, $plugin_id, $plugin_definition);
+
+    foreach ($manager->getStorageController('action')->load() as $id => $action) {
+      if ($action->getType() == 'user') {
+        $this->actions[$id] = $action;
+      }
+    }
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function create(ContainerInterface $container, array $configuration, $plugin_id, array $plugin_definition) {
+    return new static($configuration, $plugin_id, $plugin_definition, $container->get('plugin.manager.entity'));
+  }
+
+  /**
    * {@inheritdoc}
    */
   protected function getBulkOptions() {
-    return array_map(function($operation) {
-      return $operation['label'];
-    }, \Drupal::moduleHandler()->invokeAll('user_operations'));
+    return array_map(function ($action) {
+      return $action->label();
+    }, $this->actions);
   }
 
   /**
@@ -36,22 +63,21 @@ public function views_form(&$form, &$form_state) {
     parent::views_form($form, $form_state);
 
     if (!empty($this->view->result)) {
-      foreach ($this->view->result as $row_index => $result) {
-        $account = $result->_entity;
-        if ($account instanceof UserEntity) {
+      foreach ($this->view->result as $row_index => $row) {
+        $account = $row->_entity;
+        if ($account instanceof UserInterface) {
           $form[$this->options['id']][$row_index]['#title'] = t('Update the user %name', array('%name' => $account->label()));
         }
       }
     }
   }
 
-
   /**
    * {@inheritdoc}
    */
   public function views_form_validate(&$form, &$form_state) {
     $selected = array_filter($form_state['values'][$this->options['id']]);
-    if (count($selected) == 0) {
+    if (empty($selected)) {
       form_set_error('', t('No users selected.'));
     }
   }
@@ -63,32 +89,19 @@ public function views_form_submit(&$form, &$form_state) {
     if ($form_state['step'] == 'views_form_views_form') {
       // Filter only selected checkboxes.
       $selected = array_filter($form_state['values'][$this->options['id']]);
-      $accounts = array();
-      foreach (array_intersect_key($this->view->result, $selected) as $result) {
-        if ($account = $this->get_entity($result)) {
-          $accounts[$account->id()] = $account;
-        }
+      $entities = array();
+      foreach (array_intersect_key($this->view->result, $selected) as $row) {
+        $entity = $this->get_entity($row);
+        $entities[$entity->id()] = $entity;
       }
 
-      $operations = \Drupal::moduleHandler()->invokeAll('user_operations', array($form_state['values']['action']));
-      $operation = $operations[$form_state['values']['action']];
-      // Filter out unchecked accounts.
-      if ($function = $operation['callback']) {
-        // Add in callback arguments if present.
-        if (isset($operation['callback arguments'])) {
-          $args = array_merge(array($accounts), $operation['callback arguments']);
-        }
-        else {
-          $args = array($accounts);
-        }
-        call_user_func_array($function, $args);
+      $action = $this->actions[$form_state['values']['action']];
+      $action->execute(array_filter($entities));
 
-        if (isset($operation['redirect'])) {
-          $form_state['redirect'] = $operation['redirect'];
-        }
-        else {
-          drupal_set_message(format_plural(count($accounts), 'One account was blocked.', '@count accounts were blocked.'));
-        }
+
+      $operation_definition = $action->getPluginDefinition();
+      if (!empty($operation_definition['redirect'])) {
+        $form_state['redirect'] = $operation_definition['redirect'];
       }
     }
   }
diff --git a/core/modules/user/lib/Drupal/user/Tests/UserAdminTest.php b/core/modules/user/lib/Drupal/user/Tests/UserAdminTest.php
index ebd627d..2200c85 100644
--- a/core/modules/user/lib/Drupal/user/Tests/UserAdminTest.php
+++ b/core/modules/user/lib/Drupal/user/Tests/UserAdminTest.php
@@ -70,7 +70,7 @@ function testUserAdmin() {
     $account = user_load($user_c->uid);
     $this->assertEqual($account->status, 1, 'User C not blocked');
     $edit = array();
-    $edit['action'] = 'block';
+    $edit['action'] = 'user_block_user_action';
     $edit['user_bulk_form[1]'] = TRUE;
     $this->drupalPost('admin/people', $edit, t('Apply'));
     $account = user_load($user_c->uid, TRUE);
@@ -78,7 +78,7 @@ function testUserAdmin() {
 
     // Test unblocking of a user from /admin/people page and sending of activation mail
     $editunblock = array();
-    $editunblock['action'] = 'unblock';
+    $editunblock['action'] = 'user_unblock_user_action';
     $editunblock['user_bulk_form[1]'] = TRUE;
     $this->drupalPost('admin/people', $editunblock, t('Apply'));
     $account = user_load($user_c->uid, TRUE);
diff --git a/core/modules/user/lib/Drupal/user/Tests/UserCancelTest.php b/core/modules/user/lib/Drupal/user/Tests/UserCancelTest.php
index b3a5178..6ecee28 100644
--- a/core/modules/user/lib/Drupal/user/Tests/UserCancelTest.php
+++ b/core/modules/user/lib/Drupal/user/Tests/UserCancelTest.php
@@ -88,7 +88,7 @@ function testUserCancelUid1() {
     $this->admin_user = $this->drupalCreateUser(array('administer users'));
     $this->drupalLogin($this->admin_user);
     $edit = array(
-      'action' => 'cancel',
+      'action' => 'user_cancel_user_action',
       'user_bulk_form[0]' => TRUE,
     );
     $this->drupalPost('admin/people', $edit, t('Apply'));
@@ -409,7 +409,7 @@ function testMassUserCancelByAdmin() {
 
     // Cancel user accounts, including own one.
     $edit = array();
-    $edit['action'] = 'cancel';
+    $edit['action'] = 'user_cancel_user_action';
     for ($i = 0; $i <= 4; $i++) {
       $edit['user_bulk_form[' . $i . ']'] = TRUE;
     }
diff --git a/core/modules/user/lib/Drupal/user/Tests/Views/BulkFormTest.php b/core/modules/user/lib/Drupal/user/Tests/Views/BulkFormTest.php
index d51a6b6..1ff4d0d 100644
--- a/core/modules/user/lib/Drupal/user/Tests/Views/BulkFormTest.php
+++ b/core/modules/user/lib/Drupal/user/Tests/Views/BulkFormTest.php
@@ -37,11 +37,18 @@ public function testBulkForm() {
 
     $this->drupalGet('test-user-bulk-form');
     $elements = $this->xpath('//select[@id="edit-action"]//option');
-    $this->assertIdentical(count($elements), count($this->container->get('module_handler')->invokeAll('user_operations')), 'All user operations are found.');
+    // @todo Replace with loadByProperties().
+    $actions = $this->container->get('plugin.manager.entity')->getStorageController('action')->load();
+    foreach ($actions as $id =>$action) {
+      if ($action->getType() != 'user') {
+        unset($actions[$id]);
+      }
+    }
+    $this->assertIdentical(count($elements), count($actions), 'All user operations are found.');
 
     // Test submitting the page with no selection.
     $edit = array(
-      'action' => 'block',
+      'action' => 'user_block_user_action',
     );
     $this->drupalPost(NULL, $edit, t('Apply'));
     // @todo Validation errors are only shown on page refresh.
@@ -57,7 +64,7 @@ public function testBulkForm() {
     $this->assertTrue(!isset($account->roles[$role]), 'The user currently does not have a custom role.');
     $edit = array(
       'user_bulk_form[1]' => TRUE,
-      'action' => 'add_role-' . $role,
+      'action' => "user_add_role_action.$role",
     );
     $this->drupalPost(NULL, $edit, t('Apply'));
     // Re-load the user and check their roles.
@@ -66,7 +73,7 @@ public function testBulkForm() {
 
     $edit = array(
       'user_bulk_form[1]' => TRUE,
-      'action' => 'remove_role-' . $role,
+      'action' => "user_remove_role_action.$role",
     );
     $this->drupalPost(NULL, $edit, t('Apply'));
     // Re-load the user and check their roles.
@@ -78,7 +85,7 @@ public function testBulkForm() {
     $this->assertRaw($account->label(), 'The user is found in the table.');
     $edit = array(
       'user_bulk_form[1]' => TRUE,
-      'action' => 'block',
+      'action' => 'user_block_user_action',
     );
     $this->drupalPost(NULL, $edit, t('Apply'));
     // Re-load the user and check their status.
@@ -98,7 +105,7 @@ public function testBulkForm() {
     // Attempt to block the anonymous user.
     $edit = array(
       'user_bulk_form[0]' => TRUE,
-      'action' => 'block',
+      'action' => 'user_block_user_action',
     );
     $this->drupalPost(NULL, $edit, t('Apply'));
     $anonymous_account = user_load(0);
diff --git a/core/modules/user/user.api.php b/core/modules/user/user.api.php
index e9322ff..f944c71 100644
--- a/core/modules/user/user.api.php
+++ b/core/modules/user/user.api.php
@@ -206,40 +206,6 @@ function hook_user_format_name_alter(&$name, $account) {
 }
 
 /**
- * Add mass user operations.
- *
- * This hook enables modules to inject custom operations into the mass operations
- * dropdown found at admin/people, by associating a callback function with
- * the operation, which is called when the form is submitted. The callback function
- * receives one initial argument, which is an array of the checked users.
- *
- * @return
- *   An array of operations. Each operation is an associative array that may
- *   contain the following key-value pairs:
- *   - "label": Required. The label for the operation, displayed in the dropdown menu.
- *   - "callback": Required. The function to call for the operation.
- *   - "callback arguments": Optional. An array of additional arguments to pass to
- *     the callback function.
- *
- */
-function hook_user_operations() {
-  $operations = array(
-    'unblock' => array(
-      'label' => t('Unblock the selected users'),
-      'callback' => 'user_user_operations_unblock',
-    ),
-    'block' => array(
-      'label' => t('Block the selected users'),
-      'callback' => 'user_user_operations_block',
-    ),
-    'cancel' => array(
-      'label' => t('Cancel the selected user accounts'),
-    ),
-  );
-  return $operations;
-}
-
-/**
  * Act on a user account being inserted or updated.
  *
  * This hook is invoked before the user account is saved to the database.
diff --git a/core/modules/user/user.module b/core/modules/user/user.module
index 4d65c0a..057e292 100644
--- a/core/modules/user/user.module
+++ b/core/modules/user/user.module
@@ -7,7 +7,7 @@
 use Drupal\entity\Plugin\Core\Entity\EntityDisplay;
 use Drupal\file\Plugin\Core\Entity\File;
 use Drupal\user\Plugin\Core\Entity\User;
-use Drupal\user\UserRole;
+use Drupal\user\RoleInterface;
 use Drupal\Core\Template\Attribute;
 use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
 use Drupal\menu_link\Plugin\Core\Entity\MenuLink;
@@ -1815,6 +1815,55 @@ function user_role_names($membersonly = FALSE, $permission = NULL) {
 }
 
 /**
+ * Implements hook_user_role_insert().
+ */
+function user_user_role_insert(RoleInterface $role) {
+  // Ignore the authenticated and anonymous roles.
+  if (in_array($role->id(), array(DRUPAL_AUTHENTICATED_RID, DRUPAL_ANONYMOUS_RID))) {
+    return;
+  }
+
+  $action = entity_create('action', array(
+    'id' => 'user_add_role_action.' . $role->id(),
+    'type' => 'user',
+    'label' => t('Add the @label role to the selected users', array('@label' => $role->label())),
+    'configuration' => array(
+      'rid' => $role->id(),
+    ),
+    'plugin' => 'user_add_role_action',
+  ));
+  $action->save();
+  $action = entity_create('action', array(
+    'id' => 'user_remove_role_action.' . $role->id(),
+    'type' => 'user',
+    'label' => t('Remove the @label role from the selected users', array('@label' => $role->label())),
+    'configuration' => array(
+      'rid' => $role->id(),
+    ),
+    'plugin' => 'user_remove_role_action',
+  ));
+  $action->save();
+}
+
+/**
+ * Implements hook_user_role_delete().
+ */
+function user_user_role_delete(RoleInterface $role) {
+  // Ignore the authenticated and anonymous roles.
+  if (in_array($role->id(), array(DRUPAL_AUTHENTICATED_RID, DRUPAL_ANONYMOUS_RID))) {
+    return;
+  }
+
+  $actions = entity_load_multiple('action', array(
+    'user_add_role_action.' . $role->id(),
+    'user_remove_role_action.' . $role->id(),
+  ));
+  foreach ($actions as $action) {
+    $action->delete();
+  }
+}
+
+/**
  * Retrieve an array of roles matching specified conditions.
  *
  * @param $membersonly
@@ -1988,77 +2037,6 @@ function user_role_revoke_permissions($rid, array $permissions = array()) {
 }
 
 /**
- * Implements hook_user_operations().
- */
-function user_user_operations($selected_operation = FALSE) {
-  $operations = array(
-    'unblock' => array(
-      'label' => t('Unblock the selected users'),
-      'callback' => 'user_user_operations_unblock',
-    ),
-    'block' => array(
-      'label' => t('Block the selected users'),
-      'callback' => 'user_user_operations_block',
-    ),
-    'cancel' => array(
-      'label' => t('Cancel the selected user accounts'),
-      'callback' => 'user_user_operations_cancel',
-      'redirect' => 'admin/people/cancel',
-    ),
-  );
-
-  if (user_access('administer permissions')) {
-    $roles = user_role_names(TRUE);
-    unset($roles[DRUPAL_AUTHENTICATED_RID]);  // Can't edit authenticated role.
-
-    $add_roles = array();
-    foreach ($roles as $key => $value) {
-      $add_roles['add_role-' . $key] = $value;
-    }
-
-    $remove_roles = array();
-    foreach ($roles as $key => $value) {
-      $remove_roles['remove_role-' . $key] = $value;
-    }
-
-    if (count($roles)) {
-      $role_operations = array(
-        t('Add a role to the selected users') => array(
-          'label' => $add_roles,
-        ),
-        t('Remove a role from the selected users') => array(
-          'label' => $remove_roles,
-        ),
-      );
-
-      $operations += $role_operations;
-    }
-  }
-
-  // If the form has been posted, we need to insert the proper data for
-  // role editing if necessary.
-  if ($selected_operation) {
-    $operation_rid = explode('-', $selected_operation);
-    $operation = $operation_rid[0];
-    if ($operation == 'add_role' || $operation == 'remove_role') {
-      $rid = $operation_rid[1];
-      if (user_access('administer permissions')) {
-        $operations[$selected_operation] = array(
-          'callback' => 'user_multiple_role_edit',
-          'callback arguments' => array($operation, $rid),
-        );
-      }
-      else {
-        watchdog('security', 'Detected malicious attempt to alter protected user fields.', array(), WATCHDOG_WARNING);
-        return;
-      }
-    }
-  }
-
-  return $operations;
-}
-
-/**
  * Callback function for admin mass unblocking users.
  */
 function user_user_operations_unblock($accounts) {
@@ -2088,18 +2066,6 @@ function user_user_operations_block($accounts) {
 }
 
 /**
- * Callback function for admin mass canceling users.
- *
- * @param array $accounts
- *   An array of account IDs to cancel.
- */
-function user_user_operations_cancel(array $accounts) {
-  global $user;
-  // Store the accounts to be canceled in a tempstore.
-  Drupal::service('user.tempstore')->get('user_user_operations_cancel')->set($user->uid, $accounts);
-}
-
-/**
  * Callback function for admin mass adding/deleting a user role.
  */
 function user_multiple_role_edit($accounts, $operation, $rid) {
@@ -2503,44 +2469,6 @@ function user_node_load($nodes, $types) {
 }
 
 /**
- * Implements hook_action_info().
- */
-function user_action_info() {
-  return array(
-    'user_block_user_action' => array(
-      'label' => t('Block current user'),
-      'type' => 'user',
-      'configurable' => FALSE,
-      'triggers' => array('any'),
-    ),
-  );
-}
-
-/**
- * Blocks the current user.
- *
- * @ingroup actions
- */
-function user_block_user_action(&$entity, $context = array()) {
-  // First priority: If there is a $entity->uid, block that user.
-  // This is most likely a user object or the author if a node or comment.
-  if (isset($entity->uid)) {
-    $uid = $entity->uid;
-  }
-  elseif (isset($context['uid'])) {
-    $uid = $context['uid'];
-  }
-  // If neither of those are valid, then block the current user.
-  else {
-    $uid = $GLOBALS['user']->uid;
-  }
-  $account = user_load($uid);
-  $account->status = 0;
-  $account->save();
-  watchdog('action', 'Blocked user %name.', array('%name' => $account->name));
-}
-
-/**
  * Implements hook_form_FORM_ID_alter() for 'field_ui_field_instance_edit_form'.
  *
  * Add a checkbox for the 'user_register_form' instance settings on the 'Edit
diff --git a/core/modules/views/lib/Drupal/views/Plugin/ViewsHandlerManager.php b/core/modules/views/lib/Drupal/views/Plugin/ViewsHandlerManager.php
index 5768aa9..7e154ce 100644
--- a/core/modules/views/lib/Drupal/views/Plugin/ViewsHandlerManager.php
+++ b/core/modules/views/lib/Drupal/views/Plugin/ViewsHandlerManager.php
@@ -8,7 +8,7 @@
 namespace Drupal\views\Plugin;
 
 use Drupal\Component\Plugin\PluginManagerBase;
-use Drupal\Component\Plugin\Factory\DefaultFactory;
+use Drupal\Core\Plugin\Factory\ContainerFactory;
 use Drupal\Core\Plugin\Discovery\CacheDecorator;
 use Drupal\views\Plugin\Discovery\ViewsHandlerDiscovery;
 
@@ -30,7 +30,7 @@ public function __construct($type, \Traversable $namespaces) {
     $this->discovery = new ViewsHandlerDiscovery($type, $namespaces);
     $this->discovery = new CacheDecorator($this->discovery, "views:$type", 'views_info');
 
-    $this->factory = new DefaultFactory($this->discovery);
+    $this->factory = new ContainerFactory($this);
   }
 
 }
