public function BlockCustom::fields in Drupal 10
Same name and namespace in other branches
- 8 core/modules/block_content/src/Plugin/migrate/source/d7/BlockCustom.php \Drupal\block_content\Plugin\migrate\source\d7\BlockCustom::fields()
- 9 core/modules/block_content/src/Plugin/migrate/source/d7/BlockCustom.php \Drupal\block_content\Plugin\migrate\source\d7\BlockCustom::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 MigrateSourceInterface::fields
File
- core/
modules/ block_content/ src/ Plugin/ migrate/ source/ d7/ BlockCustom.php, line 32
Class
- BlockCustom
- Drupal 7 custom block source from database.
Namespace
Drupal\block_content\Plugin\migrate\source\d7Code
public function fields() {
return [
'bid' => $this
->t('The numeric identifier of the block/box'),
'body' => $this
->t('The block/box content'),
'info' => $this
->t('Admin title of the block/box.'),
'format' => $this
->t('Input format of the custom block/box content.'),
];
}