Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Entity/RevisionableInterface.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | c2387f117808 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
50 * $new_value was passed, the previous value is returned. | 50 * $new_value was passed, the previous value is returned. |
51 */ | 51 */ |
52 public function isDefaultRevision($new_value = NULL); | 52 public function isDefaultRevision($new_value = NULL); |
53 | 53 |
54 /** | 54 /** |
55 * Checks whether the entity object was a default revision when it was saved. | |
56 * | |
57 * @return bool | |
58 * TRUE if the entity object was a revision, FALSE otherwise. | |
59 */ | |
60 public function wasDefaultRevision(); | |
61 | |
62 /** | |
63 * Checks if this entity is the latest revision. | |
64 * | |
65 * @return bool | |
66 * TRUE if the entity is the latest revision, FALSE otherwise. | |
67 */ | |
68 public function isLatestRevision(); | |
69 | |
70 /** | |
55 * Acts on a revision before it gets saved. | 71 * Acts on a revision before it gets saved. |
56 * | 72 * |
57 * @param EntityStorageInterface $storage | 73 * @param EntityStorageInterface $storage |
58 * The entity storage object. | 74 * The entity storage object. |
59 * @param \stdClass $record | 75 * @param \stdClass $record |