Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CommentEntityTranslation.php

function CommentEntityTranslation::fields

Overrides MigrateSourceInterface::fields

File

core/modules/comment/src/Plugin/migrate/source/d7/CommentEntityTranslation.php, line 77

Class

CommentEntityTranslation
Drupal 7 comment entity translation source plugin.

Namespace

Drupal\comment\Plugin\migrate\source\d7

Code

public function fields() {
    return [
        'entity_type' => $this->t('The entity type this translation relates to'),
        'entity_id' => $this->t('The entity ID this translation relates to'),
        'revision_id' => $this->t('The entity revision ID this translation relates to'),
        'language' => $this->t('The target language for this translation.'),
        'source' => $this->t('The source language from which this translation was created.'),
        'uid' => $this->t('The author of this translation.'),
        'status' => $this->t('Boolean indicating whether the translation is published (visible to non-administrators).'),
        'translate' => $this->t('A boolean indicating whether this translation needs to be updated.'),
        'created' => $this->t('The Unix timestamp when the translation was created.'),
        'changed' => $this->t('The Unix timestamp when the translation was most recently saved.'),
        'subject' => $this->t('The comment title.'),
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal