3 namespace Drupal\Core\Entity;
5 use Drupal\user\UserInterface;
8 * Defines methods for an entity that supports revision logging and ownership.
10 interface RevisionLogInterface extends RevisionableInterface {
13 * Gets the entity revision creation timestamp.
16 * The UNIX timestamp of when this revision was created.
18 public function getRevisionCreationTime();
21 * Sets the entity revision creation timestamp.
23 * @param int $timestamp
24 * The UNIX timestamp of when this revision was created.
28 public function setRevisionCreationTime($timestamp);
31 * Gets the entity revision author.
33 * @return \Drupal\user\UserInterface
34 * The user entity for the revision author.
36 public function getRevisionUser();
39 * Sets the entity revision author.
41 * @param \Drupal\user\UserInterface $account
42 * The user account of the revision author.
46 public function setRevisionUser(UserInterface $account);
49 * Gets the entity revision author ID.
54 public function getRevisionUserId();
57 * Sets the entity revision author by ID.
60 * The user ID of the revision author.
64 public function setRevisionUserId($user_id);
67 * Returns the entity revision log message.
70 * The revision log message.
72 public function getRevisionLogMessage();
75 * Sets the entity revision log message.
77 * @param string $revision_log_message
78 * The revision log message.
82 public function setRevisionLogMessage($revision_log_message);