RevisionLogEntityTrait
trait RevisionLogEntityTrait (View source)
Provides a trait for accessing revision logging and ownership information.
Methods
Provides revision-related base field definitions for an entity type.
Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionCreationTime().
Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionCreationTime().
Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionUser().
Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionUser().
Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionUserId().
Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionUserId().
Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionLogMessage().
Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionLogMessage().
Gets the name of a revision metadata field.
Gets the entity type definition.
Details
static FieldDefinitionInterface[]
revisionLogBaseFieldDefinitions(EntityTypeInterface $entity_type)
Provides revision-related base field definitions for an entity type.
getRevisionCreationTime()
Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionCreationTime().
setRevisionCreationTime($timestamp)
Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionCreationTime().
getRevisionUser()
Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionUser().
setRevisionUser(UserInterface $account)
Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionUser().
getRevisionUserId()
Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionUserId().
setRevisionUserId($user_id)
Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionUserId().
getRevisionLogMessage()
Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionLogMessage().
setRevisionLogMessage($revision_log_message)
Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionLogMessage().
static protected string
getRevisionMetadataKey(EntityTypeInterface $entity_type, string $key)
Gets the name of a revision metadata field.
abstract ContentEntityTypeInterface
getEntityType()
Gets the entity type definition.