Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Block.php

function 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 90

Class

Block
Drupal 6/7 block source from database.

Namespace

Drupal\block\Plugin\migrate\source

Code

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.'),
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal