function BlockTranslation::fields

Same name in this branch
  1. 11.x core/modules/block/src/Plugin/migrate/source/d6/BlockTranslation.php \Drupal\block\Plugin\migrate\source\d6\BlockTranslation::fields()
Same name in other branches
  1. 9 core/modules/block/src/Plugin/migrate/source/d6/BlockTranslation.php \Drupal\block\Plugin\migrate\source\d6\BlockTranslation::fields()
  2. 9 core/modules/block/src/Plugin/migrate/source/d7/BlockTranslation.php \Drupal\block\Plugin\migrate\source\d7\BlockTranslation::fields()
  3. 8.9.x core/modules/block/src/Plugin/migrate/source/d6/BlockTranslation.php \Drupal\block\Plugin\migrate\source\d6\BlockTranslation::fields()
  4. 8.9.x core/modules/block/src/Plugin/migrate/source/d7/BlockTranslation.php \Drupal\block\Plugin\migrate\source\d7\BlockTranslation::fields()
  5. 10 core/modules/block/src/Plugin/migrate/source/d6/BlockTranslation.php \Drupal\block\Plugin\migrate\source\d6\BlockTranslation::fields()
  6. 10 core/modules/block/src/Plugin/migrate/source/d7/BlockTranslation.php \Drupal\block\Plugin\migrate\source\d7\BlockTranslation::fields()

Overrides Block::fields

File

core/modules/block/src/Plugin/migrate/source/d7/BlockTranslation.php, line 75

Class

BlockTranslation
Drupal 7 i18n block data from database.

Namespace

Drupal\block\Plugin\migrate\source\d7

Code

public function fields() {
    return [
        'bid' => $this->t('The block numeric identifier.'),
        'module' => $this->t('The module providing the block.'),
        'delta' => $this->t("The block's delta."),
        'theme' => $this->t('Which theme the block is placed in.'),
        'status' => $this->t('Block enabled status'),
        'weight' => $this->t('Block weight within region'),
        'region' => $this->t('Theme region within which the block is set'),
        'visibility' => $this->t('Visibility'),
        'pages' => $this->t('Pages list.'),
        'title' => $this->t('Block title.'),
        'cache' => $this->t('Cache rule.'),
        'i18n_mode' => $this->t('Multilingual mode'),
        'lid' => $this->t('Language string ID'),
        'textgroup' => $this->t('A module defined group of translations'),
        'context' => $this->t('Full string ID for quick search: type:objectid:property.'),
        'objectid' => $this->t('Object ID'),
        'type' => $this->t('Object type for this string'),
        'property' => $this->t('Object property for this string'),
        'objectindex' => $this->t('Integer value of Object ID'),
        'format' => $this->t('The {filter_format}.format of the string'),
        'translation' => $this->t('Translation'),
        'language' => $this->t('Language code'),
        'plid' => $this->t('Parent lid'),
        'plural' => $this->t('Plural index number'),
        'i18n_status' => $this->t('Translation needs update'),
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.