ContentTranslationMetadataWrapperInterface::getChangedTime

public ContentTranslationMetadataWrapperInterface::getChangedTime() Returns the timestamp of the last entity change from current translation. Return value int The timestamp of the last entity save operation. File core/modules/content_translation/src/ContentTranslationMetadataWrapperInterface.php, line 117 Class ContentTranslationMetadataWrapperInterface Common interface for content translation metadata wrappers. Namespace Drupal\content_translation Code public function getChangedTime(

ContentTranslationMetadataWrapperInterface::getAuthor

public ContentTranslationMetadataWrapperInterface::getAuthor() Returns the translation author. Return value \Drupal\user\UserInterface The user entity for the translation author. File core/modules/content_translation/src/ContentTranslationMetadataWrapperInterface.php, line 57 Class ContentTranslationMetadataWrapperInterface Common interface for content translation metadata wrappers. Namespace Drupal\content_translation Code public function getAuthor();

ContentTranslationMetadataWrapperInterface

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. Hierarchy interface \Drupal\content_translation\ContentTranslationMetadataWrapperInterface File core/modules/content_translation/src/ContentTranslationMetadataWrapperInterface.php, line 13 Namespace Drupal\content_translation Members Name Modifiers Type Description ContentTranslationMetadataWrapper

ContentTranslationMetadataWrapper::__construct

public ContentTranslationMetadataWrapper::__construct(EntityInterface $translation, ContentTranslationHandlerInterface $handler) Initializes an instance of the content translation metadata handler. Parameters EntityInterface $translation: The entity translation to be wrapped. ContentTranslationHandlerInterface $handler: The content translation handler. File core/modules/content_translation/src/ContentTranslationMetadataWrapper.php, line 35 Class ContentTranslationMetadataWrapper Base clas

ContentTranslationMetadataWrapper::setSource

public ContentTranslationMetadataWrapper::setSource($source) Sets the source language for this translation. Parameters string $source: The source language code. Return value $this Overrides ContentTranslationMetadataWrapperInterface::setSource File core/modules/content_translation/src/ContentTranslationMetadataWrapper.php, line 50 Class ContentTranslationMetadataWrapper Base class for content translation metadata wrappers. Namespace Drupal\content_translation Code public function set

ContentTranslationMetadataWrapper::setPublished

public ContentTranslationMetadataWrapper::setPublished($published) Sets the translation published status. The metadata field will be updated, only if it's translatable. Parameters bool $published: TRUE if the translation is published, FALSE otherwise. Return value $this Overrides ContentTranslationMetadataWrapperInterface::setPublished File core/modules/content_translation/src/ContentTranslationMetadataWrapper.php, line 97 Class ContentTranslationMetadataWrapper Base class for content tr

ContentTranslationMetadataWrapper::setOutdated

public ContentTranslationMetadataWrapper::setOutdated($outdated) Sets the translation outdated status. Parameters bool $outdated: TRUE if the translation is outdated, FALSE otherwise. Return value $this Overrides ContentTranslationMetadataWrapperInterface::setOutdated File core/modules/content_translation/src/ContentTranslationMetadataWrapper.php, line 65 Class ContentTranslationMetadataWrapper Base class for content translation metadata wrappers. Namespace Drupal\content_translation

ContentTranslationMetadataWrapper::setFieldOnlyIfTranslatable

protected ContentTranslationMetadataWrapper::setFieldOnlyIfTranslatable($field_name, $value) Updates a field value, only if the field is translatable. Parameters string $field_name: The name of the field. mixed $value: The field value to be set. File core/modules/content_translation/src/ContentTranslationMetadataWrapper.php, line 144 Class ContentTranslationMetadataWrapper Base class for content translation metadata wrappers. Namespace Drupal\content_translation Code protected functio

ContentTranslationMetadataWrapper::setCreatedTime

public ContentTranslationMetadataWrapper::setCreatedTime($timestamp) Sets the translation creation timestamp. The metadata field will be updated, only if it's translatable. Parameters int $timestamp: The UNIX timestamp of when the translation was created. Return value $this Overrides ContentTranslationMetadataWrapperInterface::setCreatedTime File core/modules/content_translation/src/ContentTranslationMetadataWrapper.php, line 114 Class ContentTranslationMetadataWrapper Base class for con

ContentTranslationMetadataWrapper::setChangedTime

public ContentTranslationMetadataWrapper::setChangedTime($timestamp) Sets the translation modification timestamp. The metadata field will be updated, only if it's translatable. Parameters int $timestamp: The UNIX timestamp of when the translation was last modified. Return value $this Overrides ContentTranslationMetadataWrapperInterface::setChangedTime File core/modules/content_translation/src/ContentTranslationMetadataWrapper.php, line 130 Class ContentTranslationMetadataWrapper Base cla