function EntityTestMulChanged::save

Same name in other branches
  1. 9 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulChanged.php \Drupal\entity_test\Entity\EntityTestMulChanged::save()
  2. 8.9.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulChanged.php \Drupal\entity_test\Entity\EntityTestMulChanged::save()
  3. 11.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulChanged.php \Drupal\entity_test\Entity\EntityTestMulChanged::save()

Overrides EntityBase::save

File

core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulChanged.php, line 72

Class

EntityTestMulChanged
Defines the test entity class.

Namespace

Drupal\entity_test\Entity

Code

public function save() {
    // Ensure a new timestamp.
    sleep(1);
    return parent::save();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.