public function Block::fields in Drupal 8
Same name and namespace in other branches
- 9 core/modules/block/src/Plugin/migrate/source/Block.php \Drupal\block\Plugin\migrate\source\Block::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
2 methods override Block::fields()
- BlockTranslation::fields in core/
modules/ block/ src/ Plugin/ migrate/ source/ d6/ BlockTranslation.php - Returns available fields on the source.
- BlockTranslation::fields in core/
modules/ block/ src/ Plugin/ migrate/ source/ d7/ BlockTranslation.php - Returns available fields on the source.
File
- core/
modules/ block/ src/ Plugin/ migrate/ source/ Block.php, line 83
Class
- Block
- Drupal block source from database.
Namespace
Drupal\block\Plugin\migrate\sourceCode
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('Whether or not the block is enabled.'),
'weight' => $this
->t('Weight of the block for ordering within regions.'),
'region' => $this
->t('Region the block is placed in.'),
'visibility' => $this
->t('Visibility expression.'),
'pages' => $this
->t('Pages list.'),
'title' => $this
->t('Block title.'),
'cache' => $this
->t('Cache rule.'),
];
}