ContentTranslationMetadataWrapperInterface
interface ContentTranslationMetadataWrapperInterface (View source)
Common interface for content translation metadata wrappers.
This acts as a wrapper for an entity translation object, encapsulating the logic needed to retrieve translation metadata.
Methods
Retrieves the source language for this translation.
Sets the source language for this translation.
Returns the translation outdated status.
Sets the translation outdated status.
Returns the translation author.
Returns the translation published status.
Sets the translation published status.
Returns the translation creation timestamp.
Sets the translation creation timestamp.
Returns the timestamp of the last entity change from current translation.
Sets the translation modification timestamp.
Details
string
getSource()
Retrieves the source language for this translation.
$this
setSource(string $source)
Sets the source language for this translation.
bool
isOutdated()
Returns the translation outdated status.
$this
setOutdated(bool $outdated)
Sets the translation outdated status.
UserInterface
getAuthor()
Returns the translation author.
$this
setAuthor(UserInterface $account)
Sets the translation author.
The metadata field will be updated, only if it's translatable.
bool
isPublished()
Returns the translation published status.
$this
setPublished(bool $published)
Sets the translation published status.
The metadata field will be updated, only if it's translatable.
int
getCreatedTime()
Returns the translation creation timestamp.
$this
setCreatedTime(int $timestamp)
Sets the translation creation timestamp.
The metadata field will be updated, only if it's translatable.
int
getChangedTime()
Returns the timestamp of the last entity change from current translation.
$this
setChangedTime(int $timestamp)
Sets the translation modification timestamp.
The metadata field will be updated, only if it's translatable.