You are here

public function DisqusEnabledNodeTypes::fields in Disqus 8

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

src/Plugin/migrate/source/DisqusEnabledNodeTypes.php, line 59

Class

DisqusEnabledNodeTypes
Disqus enabled content types migration source.

Namespace

Drupal\disqus\Plugin\migrate\source

Code

public function fields() {
  return [
    'type' => $this
      ->t('Content type with enabled Disqus'),
    'default' => $this
      ->t('Default Disqus status for node type'),
  ];
}