You are here

class PollChoiceTranslationMetadataWrapper in Poll 8

Base class for content translation metadata wrappers.

Hierarchy

Expanded class hierarchy of PollChoiceTranslationMetadataWrapper

File

src/PollChoiceTranslationMetadataWrapper.php, line 11

Namespace

Drupal\poll
View source
class PollChoiceTranslationMetadataWrapper extends ContentTranslationMetadataWrapper {

  /**
   * {@inheritdoc}
   */
  public function getSource() {
    return NULL;
  }

  /**
   * {@inheritdoc}
   */
  public function setSource($source) {
    return $this;
  }

  /**
   * {@inheritdoc}
   */
  public function isOutdated() {
    return FALSE;
  }

  /**
   * {@inheritdoc}
   */
  public function setOutdated($outdated) {
    return $this;
  }

  /**
   * {@inheritdoc}
   */
  public function getAuthor() {
    return NULL;
  }

  /**
   * {@inheritdoc}
   */
  public function setAuthor(UserInterface $account) {
    return $this;
  }

  /**
   * {@inheritdoc}
   */
  public function isPublished() {
    return TRUE;
  }

  /**
   * {@inheritdoc}
   */
  public function setPublished($published) {
    return $this;
  }

  /**
   * {@inheritdoc}
   */
  public function getCreatedTime() {
    return NULL;
  }

  /**
   * {@inheritdoc}
   */
  public function setCreatedTime($timestamp) {
    return $this;
  }

  /**
   * {@inheritdoc}
   */
  public function getChangedTime() {
    return NULL;
  }

  /**
   * {@inheritdoc}
   */
  public function setChangedTime($timestamp) {
    return $this;
  }

  /**
   * {@inheritdoc}
   */
  protected function setFieldOnlyIfTranslatable($field_name, $value) {
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ContentTranslationMetadataWrapper::$handler protected property The content translation handler.
ContentTranslationMetadataWrapper::$translation protected property The wrapped entity translation.
ContentTranslationMetadataWrapper::__construct public function Initializes an instance of the content translation metadata handler.
PollChoiceTranslationMetadataWrapper::getAuthor public function Returns the translation author. Overrides ContentTranslationMetadataWrapper::getAuthor
PollChoiceTranslationMetadataWrapper::getChangedTime public function Returns the timestamp of the last entity change from current translation. Overrides ContentTranslationMetadataWrapper::getChangedTime
PollChoiceTranslationMetadataWrapper::getCreatedTime public function Returns the translation creation timestamp. Overrides ContentTranslationMetadataWrapper::getCreatedTime
PollChoiceTranslationMetadataWrapper::getSource public function Retrieves the source language for this translation. Overrides ContentTranslationMetadataWrapper::getSource
PollChoiceTranslationMetadataWrapper::isOutdated public function Returns the translation outdated status. Overrides ContentTranslationMetadataWrapper::isOutdated
PollChoiceTranslationMetadataWrapper::isPublished public function Returns the translation published status. Overrides ContentTranslationMetadataWrapper::isPublished
PollChoiceTranslationMetadataWrapper::setAuthor public function Sets the translation author. Overrides ContentTranslationMetadataWrapper::setAuthor
PollChoiceTranslationMetadataWrapper::setChangedTime public function Sets the translation modification timestamp. Overrides ContentTranslationMetadataWrapper::setChangedTime
PollChoiceTranslationMetadataWrapper::setCreatedTime public function Sets the translation creation timestamp. Overrides ContentTranslationMetadataWrapper::setCreatedTime
PollChoiceTranslationMetadataWrapper::setFieldOnlyIfTranslatable protected function Updates a field value, only if the field is translatable. Overrides ContentTranslationMetadataWrapper::setFieldOnlyIfTranslatable
PollChoiceTranslationMetadataWrapper::setOutdated public function Sets the translation outdated status. Overrides ContentTranslationMetadataWrapper::setOutdated
PollChoiceTranslationMetadataWrapper::setPublished public function Sets the translation published status. Overrides ContentTranslationMetadataWrapper::setPublished
PollChoiceTranslationMetadataWrapper::setSource public function Sets the source language for this translation. Overrides ContentTranslationMetadataWrapper::setSource