public function BlockTranslation::fields in Drupal 9
Same name in this branch
- 9 core/modules/block/src/Plugin/migrate/source/d6/BlockTranslation.php \Drupal\block\Plugin\migrate\source\d6\BlockTranslation::fields()
- 9 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
- 8 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 41
Class
- BlockTranslation
- Gets i18n block data from source database.
Namespace
Drupal\block\Plugin\migrate\source\d6Code
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.'),
];
}