Same name and namespace in other branches
- 10 core/lib/Drupal/Core/Entity/RevisionLogInterface.php \Drupal\Core\Entity\RevisionLogInterface
- 9 core/lib/Drupal/Core/Entity/RevisionLogInterface.php \Drupal\Core\Entity\RevisionLogInterface
Defines methods for an entity that supports revision logging and ownership.
Hierarchy
- interface \Drupal\Core\Access\AccessibleInterface; interface \Drupal\Core\Cache\CacheableDependencyInterface; interface \Drupal\Core\Cache\RefinableCacheableDependencyInterface
- interface \Drupal\Core\Entity\EntityInterface
- interface \Drupal\Core\Entity\RevisionableInterface
- interface \Drupal\Core\Entity\RevisionLogInterface
- interface \Drupal\Core\Entity\RevisionableInterface
- interface \Drupal\Core\Entity\EntityInterface
Expanded class hierarchy of RevisionLogInterface
All classes that implement RevisionLogInterface
10 files declare their use of RevisionLogInterface
- BlockContentInterface.php in core/
modules/ block_content/ src/ BlockContentInterface.php - EntityFieldTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityFieldTest.php - EntityModerationForm.php in core/
modules/ content_moderation/ src/ Form/ EntityModerationForm.php - EntityResource.php in core/
modules/ jsonapi/ src/ Controller/ EntityResource.php - EntityTestMulRevChangedWithRevisionLog.php in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestMulRevChangedWithRevisionLog.php
File
- core/
lib/ Drupal/ Core/ Entity/ RevisionLogInterface.php, line 10
Namespace
Drupal\Core\EntityView source
interface RevisionLogInterface extends RevisionableInterface {
/**
* Gets the entity revision creation timestamp.
*
* @return int
* The UNIX timestamp of when this revision was created.
*/
public function getRevisionCreationTime();
/**
* Sets the entity revision creation timestamp.
*
* @param int $timestamp
* The UNIX timestamp of when this revision was created.
*
* @return $this
*/
public function setRevisionCreationTime($timestamp);
/**
* Gets the entity revision author.
*
* @return \Drupal\user\UserInterface
* The user entity for the revision author.
*/
public function getRevisionUser();
/**
* Sets the entity revision author.
*
* @param \Drupal\user\UserInterface $account
* The user account of the revision author.
*
* @return $this
*/
public function setRevisionUser(UserInterface $account);
/**
* Gets the entity revision author ID.
*
* @return int
* The user ID.
*/
public function getRevisionUserId();
/**
* Sets the entity revision author by ID.
*
* @param int $user_id
* The user ID of the revision author.
*
* @return $this
*/
public function setRevisionUserId($user_id);
/**
* Returns the entity revision log message.
*
* @return string
* The revision log message.
*/
public function getRevisionLogMessage();
/**
* Sets the entity revision log message.
*
* @param string $revision_log_message
* The revision log message.
*
* @return $this
*/
public function setRevisionLogMessage($revision_log_message);
}