diff --git a/core/modules/aggregator/lib/Drupal/aggregator/ItemStorageController.php b/core/modules/aggregator/lib/Drupal/aggregator/ItemStorageController.php index 070fbf0..016e8ae 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/ItemStorageController.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/ItemStorageController.php @@ -20,18 +20,6 @@ class ItemStorageController extends DatabaseStorageControllerNG implements ItemStorageControllerInterface { /** - * Overrides Drupal\Core\Entity\DataBaseStorageController::create(). - */ - public function create(array $values) { - $entity = parent::create($values); - - if (!isset($entity->timestamp->value)) { - $entity->timestamp->value = REQUEST_TIME; - } - return $entity; - } - - /** * Overrides Drupal\Core\Entity\DataBaseStorageController::attachLoad(). */ protected function attachLoad(&$queried_entities, $load_revision = FALSE) { diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Core/Entity/Item.php b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Core/Entity/Item.php index b527752..6da20f3 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Core/Entity/Item.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Core/Entity/Item.php @@ -136,7 +136,9 @@ public function label($langcode = NULL) { * {@inheritdoc} */ public function postCreate(EntityStorageControllerInterface $storage_controller) { - $this->timestamp->value = REQUEST_TIME; + if (!isset($this->timestamp->value)) { + $this->timestamp->value = REQUEST_TIME; + } } /**