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()
- 10 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 - 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.'),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.