You are here

public function BlockTranslation::fields in Drupal 10

Same name in this branch
  1. 10 core/modules/block/src/Plugin/migrate/source/d6/BlockTranslation.php \Drupal\block\Plugin\migrate\source\d6\BlockTranslation::fields()
  2. 10 core/modules/block/src/Plugin/migrate/source/d7/BlockTranslation.php \Drupal\block\Plugin\migrate\source\d7\BlockTranslation::fields()
Same name and namespace in other branches
  1. 8 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/d6/BlockTranslation.php \Drupal\block\Plugin\migrate\source\d6\BlockTranslation::fields()

Returns available fields on the source.

Return value

array Available fields in the source, keys are the field machine names as used in field mappings, values are descriptions.

Overrides Block::fields

File

core/modules/block/src/Plugin/migrate/source/d6/BlockTranslation.php, line 42

Class

BlockTranslation
Drupal 6 i18n block data from database.

Namespace

Drupal\block\Plugin\migrate\source\d6

Code

public function fields() {
  return [
    'bid' => $this
      ->t('The block numeric identifier.'),
    'ibid' => $this
      ->t('The i18n_blocks block numeric identifier.'),
    'module' => $this
      ->t('The module providing the block.'),
    'delta' => $this
      ->t("The block's delta."),
    'type' => $this
      ->t('Block type'),
    'language' => $this
      ->t('Language for this field.'),
    'theme' => $this
      ->t('Which theme the block is placed in.'),
    'default_theme' => $this
      ->t('The default theme.'),
    'title' => $this
      ->t('Block title.'),
  ];
}