diff --git a/core/modules/aggregator/lib/Drupal/aggregator/CategoryStorageController.php b/core/modules/aggregator/lib/Drupal/aggregator/CategoryStorageController.php index 7a39a98..0922531 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/CategoryStorageController.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/CategoryStorageController.php @@ -108,7 +108,7 @@ public function loadByItem($item_id) { /** * {@inheritdoc} */ - public function updateCategoriesForItem($iid, array $cids) { + public function updateItem($iid, array $cids) { // Remove all existing category items. $this->database->delete('aggregator_category_item') ->condition('iid', $iid) diff --git a/core/modules/aggregator/lib/Drupal/aggregator/CategoryStorageControllerInterface.php b/core/modules/aggregator/lib/Drupal/aggregator/CategoryStorageControllerInterface.php index cd52660..0494415 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/CategoryStorageControllerInterface.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/CategoryStorageControllerInterface.php @@ -85,7 +85,7 @@ public function loadByItem($item_id); * @param array $cids * The category IDs. */ - public function updateCategoriesForItem($iid, array $cids); + public function updateItem($iid, array $cids); } diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Form/AggregatorCategorizeFormBase.php b/core/modules/aggregator/lib/Drupal/aggregator/Form/AggregatorCategorizeFormBase.php index 3471add..9fe81cd 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Form/AggregatorCategorizeFormBase.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Form/AggregatorCategorizeFormBase.php @@ -141,7 +141,7 @@ public function buildForm(array $form, array &$form_state, array $items = NULL) public function submitForm(array &$form, array &$form_state) { if (!empty($form_state['values']['categories'])) { foreach ($form_state['values']['categories'] as $iid => $cids) { - $this->categoryStorage->updateCategoriesForItem($iid, $cids); + $this->categoryStorage->updateItem($iid, $cids); } } drupal_set_message($this->t('The categories have been saved.'));