function Block::fields
Same name in other branches
- 9 core/modules/block/src/Plugin/migrate/source/Block.php \Drupal\block\Plugin\migrate\source\Block::fields()
- 8.9.x core/modules/block/src/Plugin/migrate/source/Block.php \Drupal\block\Plugin\migrate\source\Block::fields()
- 11.x core/modules/block/src/Plugin/migrate/source/Block.php \Drupal\block\Plugin\migrate\source\Block::fields()
Overrides MigrateSourceInterface::fields
2 methods override Block::fields()
- BlockTranslation::fields in core/
modules/ block/ src/ Plugin/ migrate/ source/ d6/ BlockTranslation.php - BlockTranslation::fields in core/
modules/ block/ src/ Plugin/ migrate/ source/ d7/ BlockTranslation.php
File
-
core/
modules/ block/ src/ Plugin/ migrate/ source/ Block.php, line 90
Class
- Block
- Drupal 6/7 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.'),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.