function TestDrupal6SqlBase::fields

Same name and namespace in other branches
  1. 10 core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php \Drupal\Tests\migrate_drupal\Unit\source\d6\TestDrupal6SqlBase::fields()
  2. 11.x core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php \Drupal\Tests\migrate_drupal\Unit\source\d6\TestDrupal6SqlBase::fields()
  3. 9 core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php \Drupal\Tests\migrate_drupal\Unit\source\d6\TestDrupal6SqlBase::fields()
  4. 8.9.x core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php \Drupal\Tests\migrate_drupal\Unit\source\d6\TestDrupal6SqlBase::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/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php, line 152

Class

TestDrupal6SqlBase
Extends the Drupal6SqlBase abstract class.

Namespace

Drupal\Tests\migrate_drupal\Unit\source\d6

Code

public function fields() {
  return [
    'filename' => 'The path of the primary file for this item.',
    'name' => 'The name of the item; e.g. node.',
    'type' => 'The type of the item, either module, theme, or theme_engine.',
    'owner' => "A theme's 'parent'. Can be either a theme or an engine.",
    'status' => 'Boolean indicating whether or not this item is enabled.',
    'throttle' => 'Boolean indicating whether this item is disabled when the throttle.module disables throttleable items.',
    'bootstrap' => "Boolean indicating whether this module is loaded during Drupal's early bootstrapping phase (e.g. even before the page cache is consulted).",
    'schema_version' => "The module's database schema version number.",
    'weight' => "The order in which this module's hooks should be invoked.",
    'info' => "A serialized array containing information from the module's .info file.",
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.