You are here

public function Block::fields in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

File

core/modules/block/src/Plugin/migrate/source/Block.php, line 78
Contains \Drupal\block\Plugin\migrate\source\Block.

Class

Block
Drupal block source from database.

Namespace

Drupal\block\Plugin\migrate\source

Code

public function fields() {
  return array(
    '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.'),
  );
}